mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 02:33:59 +08:00
tune relaying of MSG_IDLE
This commit is contained in:
+5
-1
@@ -2611,7 +2611,11 @@ static LRESULT DefaultSystemMsgHandler(PMAINWIN pWin, UINT message,
|
||||
the descendant control if the control captured the mouse event. */
|
||||
HWND captured = GetCapture();
|
||||
if (captured && GetMainWindowHandle(captured) == (HWND)pWin) {
|
||||
PostMessage(captured, MSG_IDLE, wParam, lParam);
|
||||
static DWORD last_tick_count;
|
||||
if (wParam > last_tick_count + 100) {
|
||||
PostMessage(captured, MSG_IDLE, wParam, lParam);
|
||||
last_tick_count = wParam;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (message == MSG_CARETBLINK && pWin->dwStyle & WS_VISIBLE) {
|
||||
|
||||
Reference in New Issue
Block a user