WM_CANCELMODE resets menu flag in the default window procedure.

This commit is contained in:
Krzysztof Foltman 2005-03-09 12:40:38 +00:00 committed by Alexandre Julliard
parent 95e527b0f4
commit 4affd0185f
1 changed files with 1 additions and 0 deletions

View File

@ -591,6 +591,7 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
}
case WM_CANCELMODE:
iMenuSysKey = 0;
if (!(GetWindowLongW( hwnd, GWL_STYLE ) & WS_CHILD)) EndMenu();
if (GetCapture() == hwnd) ReleaseCapture();
break;