Send a wxIconizeEvent when a wxDialog is restored in wxMSW

The event is already sent when the dialog is minimized. Send the event in the
same way as is done for wxFrame.
This commit is contained in:
Maarten
2017-05-22 00:19:10 +02:00
committed by VZ
parent aebd8c728b
commit 84e58117f8

View File

@@ -319,17 +319,24 @@ WXLRESULT wxDialog::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lPar
break;
case WM_SIZE:
if ( m_hGripper )
switch ( wParam )
{
switch ( wParam )
{
case SIZE_MAXIMIZED:
ShowGripper(false);
break;
case SIZE_MINIMIZED:
m_iconized = true;
break;
case SIZE_RESTORED:
ShowGripper(true);
}
case SIZE_MAXIMIZED:
wxFALLTHROUGH;
case SIZE_RESTORED:
if ( m_hGripper )
ShowGripper( wParam == SIZE_RESTORED );
if ( m_iconized )
(void)SendIconizeEvent(false);
m_iconized = false;
break;
}
// the Windows dialogs unfortunately are not meant to be resizable