If the current menu handle is already set, do not set it again.

This commit is contained in:
Marcus Meissner 2004-08-13 00:39:29 +00:00 committed by Alexandre Julliard
parent f89e115867
commit c966c56f08
1 changed files with 2 additions and 0 deletions

View File

@ -296,6 +296,8 @@ static LRESULT MDISetMenu( HWND hwnd, HMENU hmenuFrame,
if (!(ci = get_client_info( hwnd ))) return 0;
if (hmenuFrame == ci->hFrameMenu) return (LRESULT)hmenuFrame;
if( IsZoomed(ci->hwndActiveChild) && hmenuFrame && hmenuFrame!= ci->hFrameMenu )
MDI_RestoreFrameMenu( hwndFrame, ci->hwndActiveChild );