Commit 40097ccf authored by NF Stevens's avatar NF Stevens Committed by Alexandre Julliard

- Handle WM_MDIRESTORE by calling WM_SYSCOMMAND for

the child window so that the system menu is set correctly. - In MDICascade and MDITile use WM_MDIRESTORE message to restore maximized window so that system menu is handled correctly.
parent b00cbead
......@@ -640,7 +640,8 @@ static LONG MDICascade(WND* clientWnd, MDICLIENTINFO *ci)
UINT32 total;
if (ci->hwndChildMaximized)
ShowWindow16( ci->hwndChildMaximized, SW_NORMAL);
SendMessage32A( clientWnd->hwndSelf, WM_MDIRESTORE,
(WPARAM32)ci->hwndChildMaximized, 0);
if (ci->nActiveChildren == 0) return 0;
......@@ -686,7 +687,8 @@ static void MDITile( WND* wndClient, MDICLIENTINFO *ci, WPARAM32 wParam )
UINT32 total = 0;
if (ci->hwndChildMaximized)
ShowWindow32(ci->hwndChildMaximized, SW_NORMAL);
SendMessage32A( wndClient->hwndSelf, WM_MDIRESTORE,
(WPARAM32)ci->hwndChildMaximized, 0);
if (ci->nActiveChildren == 0) return;
......@@ -1011,7 +1013,7 @@ LRESULT WINAPI MDIClientWndProc( HWND32 hwnd, UINT32 message, WPARAM32 wParam,
break;
case WM_MDIRESTORE:
ShowWindow32( (HWND32)wParam, SW_NORMAL);
SendMessage32A( (HWND32)wParam, WM_SYSCOMMAND, SC_RESTORE, 0);
return 0;
case WM_MDISETMENU:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment