- 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.
This commit is contained in:
NF Stevens 1998-12-10 10:41:23 +00:00 committed by Alexandre Julliard
parent b00cbeadb8
commit 40097ccfb5
1 changed files with 5 additions and 3 deletions

View File

@ -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: