set m_isBeingDeleted to true (only) in SendDestroyEvent(); call it as early as possible during the window destruction to ensure that destroy event handlers can still access the full window object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -61,7 +61,8 @@ bool wxFrame::Create(wxWindow *parent,
|
||||
|
||||
wxFrame::~wxFrame()
|
||||
{
|
||||
m_isBeingDeleted = true;
|
||||
SendDestroyEvent();
|
||||
|
||||
DeleteAllBars();
|
||||
}
|
||||
|
||||
@@ -362,7 +363,7 @@ void wxFrame::PositionToolBar()
|
||||
int cw, ch;
|
||||
|
||||
GetSize( &cw , &ch ) ;
|
||||
|
||||
|
||||
int statusX = 0 ;
|
||||
int statusY = 0 ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user