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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user