mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
leave TrackStartmenu() function when executing any start menu command
svn path=/trunk/; revision=18281
This commit is contained in:
parent
c82718f9a2
commit
e86e062d9a
1 changed files with 3 additions and 3 deletions
|
@ -311,7 +311,7 @@ LRESULT StartMenu::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_MOVE: {
|
case WM_MOVE: {
|
||||||
POINTS& pos = MAKEPOINTS(lparam);
|
const POINTS& pos = MAKEPOINTS(lparam);
|
||||||
|
|
||||||
// move open submenus of floating menus
|
// move open submenus of floating menus
|
||||||
if (_submenu) {
|
if (_submenu) {
|
||||||
|
@ -1623,13 +1623,13 @@ void StartMenuRoot::TrackStartmenu()
|
||||||
ShowWindow(hwnd, SW_SHOW);
|
ShowWindow(hwnd, SW_SHOW);
|
||||||
SetForegroundWindow(hwnd);
|
SetForegroundWindow(hwnd);
|
||||||
|
|
||||||
while(IsWindow(hwnd)) {
|
while(IsWindow(hwnd) && IsWindowVisible(hwnd)) {
|
||||||
if (!GetMessage(&msg, 0, 0, 0)) {
|
if (!GetMessage(&msg, 0, 0, 0)) {
|
||||||
PostQuitMessage(msg.wParam);
|
PostQuitMessage(msg.wParam);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for a mouse click on any window, which is not part of the start menu
|
// Check for a mouse click on any window, that is not part of the start menu
|
||||||
if (msg.message==WM_LBUTTONDOWN || msg.message==WM_MBUTTONDOWN || msg.message==WM_RBUTTONDOWN) {
|
if (msg.message==WM_LBUTTONDOWN || msg.message==WM_MBUTTONDOWN || msg.message==WM_RBUTTONDOWN) {
|
||||||
StartMenu* menu_wnd = NULL;
|
StartMenu* menu_wnd = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue