mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08: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:
committed by
GitHub
parent
e3ac541360
commit
802a87dfb2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user