Mercurial > vim
comparison src/gui_w32.c @ 3010:e5b17a5f6516 v7.3.277
updated for version 7.3.277
Problem: MS-Windows: some characters do not show in dialogs.
Solution: Use the wide methods when available. (Yanwei Jia)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 10 Aug 2011 17:08:03 +0200 |
parents | 125c7bf52271 |
children | 1d7434010de1 |
comparison
equal
deleted
inserted
replaced
3009:3db29c251bb7 | 3010:e5b17a5f6516 |
---|---|
1268 /* there are ...A and ...W version of GetMonitorInfo - looking at | 1268 /* there are ...A and ...W version of GetMonitorInfo - looking at |
1269 * winuser.h, they have exactly the same declaration. */ | 1269 * winuser.h, they have exactly the same declaration. */ |
1270 pGetMonitorInfo = (TGetMonitorInfo)GetProcAddress(user32_lib, | 1270 pGetMonitorInfo = (TGetMonitorInfo)GetProcAddress(user32_lib, |
1271 "GetMonitorInfoA"); | 1271 "GetMonitorInfoA"); |
1272 } | 1272 } |
1273 | |
1274 #ifdef FEAT_MBYTE | |
1275 /* If the OS is Windows NT, use wide functions; | |
1276 * this enables common dialogs input unicode from IME. */ | |
1277 if (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT) | |
1278 { | |
1279 pDispatchMessage = DispatchMessageW; | |
1280 pGetMessage = GetMessageW; | |
1281 pIsDialogMessage = IsDialogMessageW; | |
1282 pPeekMessage = PeekMessageW; | |
1283 } | |
1284 else | |
1285 { | |
1286 pDispatchMessage = DispatchMessageA; | |
1287 pGetMessage = GetMessageA; | |
1288 pIsDialogMessage = IsDialogMessageA; | |
1289 pPeekMessage = PeekMessageA; | |
1290 } | |
1291 #endif | |
1273 } | 1292 } |
1274 | 1293 |
1275 /* | 1294 /* |
1276 * Initialise the GUI. Create all the windows, set up all the call-backs | 1295 * Initialise the GUI. Create all the windows, set up all the call-backs |
1277 * etc. | 1296 * etc. |