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)
diff --git a/src/gui_w48.c b/src/gui_w48.c
index 445104d..4667dc7 100644
--- a/src/gui_w48.c
+++ b/src/gui_w48.c
@@ -390,7 +390,7 @@
KillTimer(NULL, idEvent);
/* Eat spurious WM_TIMER messages */
- while (PeekMessage(&msg, hwnd, WM_TIMER, WM_TIMER, PM_REMOVE))
+ while (pPeekMessage(&msg, hwnd, WM_TIMER, WM_TIMER, PM_REMOVE))
;
if (blink_state == BLINK_ON)
@@ -418,7 +418,7 @@
{
KillTimer(NULL, blink_timer);
/* Eat spurious WM_TIMER messages */
- while (PeekMessage(&msg, s_hwnd, WM_TIMER, WM_TIMER, PM_REMOVE))
+ while (pPeekMessage(&msg, s_hwnd, WM_TIMER, WM_TIMER, PM_REMOVE))
;
blink_timer = 0;
}
@@ -476,7 +476,7 @@
s_timed_out = TRUE;
/* Eat spurious WM_TIMER messages */
- while (PeekMessage(&msg, hwnd, WM_TIMER, WM_TIMER, PM_REMOVE))
+ while (pPeekMessage(&msg, hwnd, WM_TIMER, WM_TIMER, PM_REMOVE))
;
if (idEvent == s_wait_timer)
s_wait_timer = 0;
@@ -1707,7 +1707,7 @@
static char_u k10[] = {K_SPECIAL, 'k', ';', 0};
#endif
- GetMessage(&msg, NULL, 0, 0);
+ pGetMessage(&msg, NULL, 0, 0);
#ifdef FEAT_OLE
/* Look after OLE Automation commands */
@@ -1718,7 +1718,7 @@
{
/* Message can't be ours, forward it. Fixes problem with Ultramon
* 3.0.4 */
- DispatchMessage(&msg);
+ pDispatchMessage(&msg);
}
else
{
@@ -1749,14 +1749,14 @@
if (msg.message == WM_USER)
{
MyTranslateMessage(&msg);
- DispatchMessage(&msg);
+ pDispatchMessage(&msg);
return;
}
#endif
#ifdef MSWIN_FIND_REPLACE
/* Don't process messages used by the dialog */
- if (s_findrep_hwnd != NULL && IsDialogMessage(s_findrep_hwnd, &msg))
+ if (s_findrep_hwnd != NULL && pIsDialogMessage(s_findrep_hwnd, &msg))
{
HandleMouseHide(msg.message, msg.lParam);
return;
@@ -1928,7 +1928,7 @@
if (vk != VK_F10 || check_map(k10, State, FALSE, TRUE, FALSE,
NULL, NULL) == NULL)
#endif
- DispatchMessage(&msg);
+ pDispatchMessage(&msg);
}
/*
@@ -1943,7 +1943,7 @@
MSG msg;
if (!s_busy_processing)
- while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)
+ while (pPeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)
&& !vim_is_input_buf_full())
process_message();
}
@@ -2019,7 +2019,7 @@
KillTimer(NULL, s_wait_timer);
/* Eat spurious WM_TIMER messages */
- while (PeekMessage(&msg, s_hwnd, WM_TIMER, WM_TIMER, PM_REMOVE))
+ while (pPeekMessage(&msg, s_hwnd, WM_TIMER, WM_TIMER, PM_REMOVE))
;
s_wait_timer = 0;
}