- Display cues and focus when hitting the ALT key.

- Simplify broadcasting the UI state change

svn path=/trunk/; revision=30657
This commit is contained in:
Thomas Bluemel 2007-11-22 00:09:21 +00:00
parent cb52e39d9f
commit 9e7d6ab10e
2 changed files with 5 additions and 8 deletions

View file

@ -991,12 +991,7 @@ static void DefWndPrint( HWND hwnd, HDC hdc, ULONG uFlags)
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 @@ User32DefWindowProc(HWND hWnd,
/* Always broadcast the update to all children */
EnumChildWindows(hWnd,
UserSendUiUpdateMsg,
(LPARAM)Flags | ((LPARAM)Action << 3));
(LPARAM)wParam);
break;
}

View file

@ -2313,7 +2313,9 @@ IsDialogMessageW(
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;
}