mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[EXPLORER] Hide Start Menu before Run dialog (#4823)
- Add HideStartMenu helper method. - Hide Start Menu before opening Run dialog. CORE-13330
This commit is contained in:
parent
e3ac541360
commit
802a87dfb2
1 changed files with 8 additions and 5 deletions
|
@ -850,11 +850,17 @@ public:
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
VOID HideStartMenu()
|
||||
{
|
||||
m_StartMenuPopup->OnSelect(MPOS_CANCELLEVEL);
|
||||
}
|
||||
|
||||
LRESULT HandleHotKey(DWORD id)
|
||||
{
|
||||
switch (id)
|
||||
{
|
||||
case IDHK_RUN:
|
||||
HideStartMenu();
|
||||
DisplayRunFileDlg();
|
||||
break;
|
||||
case IDHK_HELP:
|
||||
|
@ -903,6 +909,7 @@ public:
|
|||
// TODO:
|
||||
break;
|
||||
case TRAYCMD_RUN_DIALOG:
|
||||
HideStartMenu();
|
||||
DisplayRunFileDlg();
|
||||
break;
|
||||
case TRAYCMD_LOGOFF_DIALOG:
|
||||
|
@ -3062,13 +3069,9 @@ HandleTrayContextMenu:
|
|||
return FALSE;
|
||||
|
||||
if (::IsWindowVisible(hwndStartMenu))
|
||||
{
|
||||
m_StartMenuPopup->OnSelect(MPOS_CANCELLEVEL);
|
||||
}
|
||||
HideStartMenu();
|
||||
else
|
||||
{
|
||||
PopupStartMenu();
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue