Lots of OS/2 Updates mirroring msw updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2001-05-29 18:59:17 +00:00
parent 30bc4a8fc0
commit 1ec46a5b35
10 changed files with 1101 additions and 242 deletions

View File

@@ -306,6 +306,17 @@ wxWindow::~wxWindow()
m_isBeingDeleted = TRUE;
OS2DetachWindowMenu();
for (wxWindow* pWin = GetParent(); pWin; pWin = pWin->GetParent())
{
wxFrame* pFrame = wxDynamicCast(pWin, wxFrame);
if (pFrame)
{
if (pFrame->GetLastFocus() == this)
pFrame->SetLastFocus((wxWindow*)NULL);
break;
}
}
if (m_parent)
m_parent->RemoveChild(this);
DestroyChildren();