Author: weiden
Date: Wed Nov 21 11:43:20 2007
New Revision: 30612
URL:
http://svn.reactos.org/svn/reactos?rev=30612&view=rev
Log:
Check SPI_GETKEYBOARDCUES to find out if we should process WM_CHANGEUISTATE and
WM_UPDATEUISTATE
Modified:
trunk/reactos/dll/win32/user32/windows/defwnd.c
Modified: trunk/reactos/dll/win32/user32/windows/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/defwnd.c (original)
+++ trunk/reactos/dll/win32/user32/windows/defwnd.c Wed Nov 21 11:43:20 2007
@@ -1618,9 +1618,16 @@
case WM_CHANGEUISTATE:
{
+ BOOL AlwaysShowCues = TRUE;
WORD Action = LOWORD(wParam);
WORD Flags = HIWORD(wParam);
- PWINDOW Wnd = ValidateHwnd(hWnd);
+ PWINDOW Wnd;
+
+ SystemParametersInfoW(SPI_GETKEYBOARDCUES, 0, &AlwaysShowCues, 0);
+ if (AlwaysShowCues)
+ break;
+
+ Wnd= ValidateHwnd(hWnd);
if (!Wnd || lParam != 0)
break;
@@ -1693,9 +1700,16 @@
case WM_UPDATEUISTATE:
{
BOOL Change = TRUE;
+ BOOL AlwaysShowCues = TRUE;
WORD Action = LOWORD(wParam);
WORD Flags = HIWORD(wParam);
- PWINDOW Wnd = ValidateHwnd(hWnd);
+ PWINDOW Wnd;
+
+ SystemParametersInfoW(SPI_GETKEYBOARDCUES, 0, &AlwaysShowCues, 0);
+ if (AlwaysShowCues)
+ break;
+
+ Wnd = ValidateHwnd(hWnd);
if (!Wnd || lParam != 0)
break;