From: Vadim Zeitlin Date: Sun, 23 Sep 2012 22:48:39 +0000 (+0000) Subject: Restore an iconized MDI child frame when activating it. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/254dceaaababd596acd0f30308857462b66f10f1 Restore an iconized MDI child frame when activating it. Without doing this activating an iconized frame doesn't do anything at all, i.e. doesn't present it to the user as presumably intended. Closes #13946. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 8b0ab4e871..68faa155db 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -1037,6 +1037,11 @@ void wxMDIChildFrame::Activate() wxMDIParentFrame * const parent = GetMDIParent(); if ( parent && parent->GetClientWindow() ) { + // Activating an iconized MDI frame doesn't do anything, so restore it + // first to really present it to the user. + if ( IsIconized() ) + Restore(); + ::SendMessage(GetWinHwnd(parent->GetClientWindow()), WM_MDIACTIVATE, (WPARAM) GetHwnd(), 0); }