X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/859e65deb544f039ff4a889da0a8047a0b8c9ca2..a0cb0ba509fad1fb966d4d5277ff28071d7a8477:/src/os2/toplevel.cpp?ds=sidebyside diff --git a/src/os2/toplevel.cpp b/src/os2/toplevel.cpp index 55794c5bfe..a24707edd1 100644 --- a/src/os2/toplevel.cpp +++ b/src/os2/toplevel.cpp @@ -593,35 +593,13 @@ bool wxTopLevelWindowOS2::Show( m_bIconized = vSwp.fl & SWP_MINIMIZE; ::WinQueryWindowPos(m_hWnd, &m_vSwpClient); ::WinSendMsg(m_hFrame, WM_UPDATEFRAME, (MPARAM)~0, 0); + ::WinQueryWindowPos(m_hWnd, &vSwp); ::WinEnableWindow(m_hFrame, TRUE); // // Deal with children // MoveChildren(m_vSwpClient.cy - vSwp.cy); - - - // - // Need to handle the case of a single child that not a control - // as this is probably a panel with its own children - // - if (GetChildren().GetCount() > 0) - { - for (wxWindowList::Node* pNode = GetChildren().GetFirst(); - pNode; - pNode = pNode->GetNext()) - { - wxWindow* pChild = pNode->GetData(); - - if ( GetChildren().GetCount() == 1 && - !pChild->IsKindOf(CLASSINFO(wxControl)) - ) - pChild->MoveChildren(m_vSwpClient.cy - vSwp.cy); - pChild->Refresh(); - pChild = NULL; - } - } - vEvent.SetEventObject(this); GetEventHandler()->ProcessEvent(vEvent); }