73 LRESULT stopFurtherProcessing = FALSE;
78 if (msg == WM_KEYDOWN || msg == WM_KEYUP || msg == WM_CHAR || msg == WM_CANCELMODE ||
79 msg == WM_DEADCHAR || msg == WM_SYSKEYDOWN ||
80 msg == WM_SYSKEYUP || msg == WM_SYSDEADCHAR || msg == WM_SYSCHAR ||
81 msg == WM_IME_CHAR || msg == WM_IME_COMPOSITION || msg == WM_IME_COMPOSITIONFULL ||
82 msg == WM_IME_CONTROL || msg == WM_IME_ENDCOMPOSITION || msg == WM_IME_KEYDOWN ||
83 msg == WM_IME_KEYUP || msg == WM_IME_NOTIFY || msg == WM_IME_REQUEST ||
84 msg == WM_IME_SELECT || msg == WM_IME_SETCONTEXT || msg == WM_IME_STARTCOMPOSITION ||
85 msg == WM_COPY || msg == WM_PASTE || msg == WM_CUT || msg == WM_HELP)
93 bool active = (LOWORD(wParam) != WA_INACTIVE);
97 case WM_DISPLAYCHANGE:
101 case WM_STYLECHANGED:
102 case WM_WINDOWPOSCHANGED:
105 case WM_EXITSIZEMOVE:
276 if (focusedWidget != 0)
283 SetClassLongPtr(hwnd, GCLP_HCURSOR,
static_cast<LONG>(
reinterpret_cast<LONG_PTR
>(newCursor)));
284 SetCursor(newCursor);
308 return stopFurtherProcessing;
318 return CallNextHookEx(0, nCode, wParam, lParam);
320 MSG* msg = (MSG*)lParam;
321 if (nCode == HC_ACTION)
323 if (wParam & PM_REMOVE)
329 return CallNextHookEx(0, nCode, wParam, lParam);
335 return CallNextHookEx(0, nCode, wParam, lParam);
337 CWPSTRUCT* msg = (CWPSTRUCT*)lParam;
338 if (nCode == HC_ACTION)
343 return CallNextHookEx(0, nCode, wParam, lParam);