Always calls SetMenu in MDISetMenu.

This commit is contained in:
Gerard Patel 2000-05-07 18:25:33 +00:00 committed by Alexandre Julliard
parent 5f6da6b500
commit a2e1b412cf
1 changed files with 8 additions and 5 deletions

View File

@ -282,14 +282,17 @@ static LRESULT MDISetMenu( HWND hwnd, HMENU hmenuFrame,
ci->hWindowMenu = hmenuWindow; ci->hWindowMenu = hmenuWindow;
} }
if( hmenuFrame && hmenuFrame!=oldFrameMenu) if (hmenuFrame)
{ {
SetMenu(hwndFrame, hmenuFrame); SetMenu(hwndFrame, hmenuFrame);
if( hmenuFrame!=oldFrameMenu )
{
if( ci->hwndChildMaximized ) if( ci->hwndChildMaximized )
MDI_AugmentFrameMenu(ci, w->parent, ci->hwndChildMaximized ); MDI_AugmentFrameMenu(ci, w->parent, ci->hwndChildMaximized );
WIN_ReleaseWndPtr(w); WIN_ReleaseWndPtr(w);
return oldFrameMenu; return oldFrameMenu;
} }
}
WIN_ReleaseWndPtr(w); WIN_ReleaseWndPtr(w);
return 0; return 0;
} }