Author: weiden
Date: Thu Nov 22 03:09:21 2007
New Revision: 30657
URL:
http://svn.reactos.org/svn/reactos?rev=30657&view=rev
Log:
- Display cues and focus when hitting the ALT key.
- Simplify broadcasting the UI state change
Modified:
trunk/reactos/dll/win32/user32/windows/defwnd.c
trunk/reactos/dll/win32/user32/windows/dialog.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 Thu Nov 22 03:09:21 2007
@@ -991,12 +991,7 @@
static BOOL CALLBACK
UserSendUiUpdateMsg(HWND hwnd, LPARAM lParam)
{
- WPARAM wParam;
-
- /* Unpack WPARAM */
- wParam = MAKEWPARAM((lParam >> 3) & 0x3,
- lParam & (UISF_HIDEFOCUS | UISF_HIDEACCEL | UISF_ACTIVE));
- SendMessageW(hwnd, WM_UPDATEUISTATE, wParam, 0);
+ SendMessageW(hwnd, WM_UPDATEUISTATE, (WPARAM)lParam, 0);
return TRUE;
}
@@ -1773,7 +1768,7 @@
/* Always broadcast the update to all children */
EnumChildWindows(hWnd,
UserSendUiUpdateMsg,
- (LPARAM)Flags | ((LPARAM)Action << 3));
+ (LPARAM)wParam);
break;
}
Modified: trunk/reactos/dll/win32/user32/windows/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/dialog.c (original)
+++ trunk/reactos/dll/win32/user32/windows/dialog.c Thu Nov 22 03:09:21 2007
@@ -2313,7 +2313,9 @@
break;
case WM_SYSKEYDOWN:
- SendMessageW(hDlg, WM_CHANGEUISTATE, MAKEWPARAM(UIS_CLEAR, UISF_HIDEFOCUS), 0);
+ /* If the ALT key is being pressed display the keyboard cues */
+ if (lpMsg->lParam & (1 << 29))
+ SendMessageW(hDlg, WM_CHANGEUISTATE, MAKEWPARAM(UIS_CLEAR, UISF_HIDEACCEL |
UISF_HIDEFOCUS), 0);
break;
}