Calling Hide() on an iconized window wrongly reset its m_iconized flag but
hiding the window shouldn't affect it.
Closes #13373.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68614
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
::ShowWindow(GetHwnd(), nShowCmd);
- m_iconized = nShowCmd == SW_MINIMIZE;
+ // Hiding the window doesn't change its iconized state.
+ if ( nShowCmd != SW_HIDE )
+ {
+ // Otherwise restoring, maximizing or showing the window normally also
+ // makes it not iconized and only minimizing it does make it iconized.
+ m_iconized = nShowCmd == SW_MINIMIZE;
+ }
}
void wxTopLevelWindowMSW::ShowWithoutActivating()