mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[EXPLORER_NEW]
- Use IMenuPopup_OnSelect to close the start menu when the win key is pressed. - Fixes closing the start menu (on windows and on reactos) svn path=/branches/shell-experiments/; revision=65070
This commit is contained in:
parent
2c619c6486
commit
6f9dab8a15
1 changed files with 5 additions and 1 deletions
|
@ -2889,9 +2889,13 @@ HandleTrayContextMenu:
|
|||
break;
|
||||
|
||||
if (IsWindowVisible(hwndStartMenu))
|
||||
SetWindowPos(hwndStartMenu, 0,0,0,0,0, SWP_HIDEWINDOW | SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOZORDER);
|
||||
{
|
||||
IMenuPopup_OnSelect(This->StartMenuPopup, MPOS_CANCELLEVEL);
|
||||
}
|
||||
else
|
||||
{
|
||||
SendMessage(This->hWnd, WM_COMMAND, MAKEWPARAM(BN_CLICKED, IDC_STARTBTN), (LPARAM)This->hwndStart);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue