diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-08-10 17:08:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-08-10 17:08:03 +0200 |
commit | 8c85fa3b2659a01fc1462ea26140ad2d0622e5b0 (patch) | |
tree | 569a36665fef6bf623fdfe92ac17cf1c3d273518 /src/os_win32.h | |
parent | cf839732113e19a53302331d4f479a5e844a4a67 (diff) | |
download | vim-git-8c85fa3b2659a01fc1462ea26140ad2d0622e5b0.tar.gz |
updated for version 7.3.277v7.3.277
Problem: MS-Windows: some characters do not show in dialogs.
Solution: Use the wide methods when available. (Yanwei Jia)
Diffstat (limited to 'src/os_win32.h')
-rw-r--r-- | src/os_win32.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/os_win32.h b/src/os_win32.h index 41a44bf0d..5303d6ddc 100644 --- a/src/os_win32.h +++ b/src/os_win32.h @@ -193,3 +193,17 @@ Trace(char *pszFormat, ...); #else # define vim_mkdir(x, y) mch_mkdir(x) #endif + +/* Enable common dialogs input unicode from IME if posible. */ +#ifdef FEAT_MBYTE + /* The variables are defined in os_win32.c. */ +extern LRESULT (WINAPI *pDispatchMessage)(LPMSG); +extern BOOL (WINAPI *pGetMessage)(LPMSG, HWND, UINT, UINT); +extern BOOL (WINAPI *pIsDialogMessage)(HWND, LPMSG); +extern BOOL (WINAPI *pPeekMessage)(LPMSG, HWND, UINT, UINT, UINT); +#else +# define pDispatchMessage DispatchMessage +# define pGetMessage GetMessage +# define pIsDialogMessage IsDialogMessage +# define pPeekMessage PeekMessage +#endif |