reintroduced m_isBeingDeleted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -107,10 +107,10 @@ bool wxFrame::Create(wxWindow *parent,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ;
|
MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ;
|
||||||
|
|
||||||
m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ;
|
m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ;
|
||||||
SetThemeWindowBackground( (WindowRef) m_macWindow , m_macWindowBackgroundTheme , false ) ;
|
SetThemeWindowBackground( (WindowRef) m_macWindow , m_macWindowBackgroundTheme , false ) ;
|
||||||
|
|
||||||
wxModelessWindows.Append(this);
|
wxModelessWindows.Append(this);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -119,7 +119,6 @@ bool wxFrame::Create(wxWindow *parent,
|
|||||||
wxFrame::~wxFrame()
|
wxFrame::~wxFrame()
|
||||||
{
|
{
|
||||||
m_isBeingDeleted = TRUE;
|
m_isBeingDeleted = TRUE;
|
||||||
|
|
||||||
DeleteAllBars();
|
DeleteAllBars();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,6 +77,8 @@ wxRadioBox::wxRadioBox()
|
|||||||
|
|
||||||
wxRadioBox::~wxRadioBox()
|
wxRadioBox::~wxRadioBox()
|
||||||
{
|
{
|
||||||
|
m_isBeingDeleted = TRUE;
|
||||||
|
|
||||||
wxRadioButton *next,*current;
|
wxRadioButton *next,*current;
|
||||||
|
|
||||||
current=m_radioButtonCycle->NextInCycle();
|
current=m_radioButtonCycle->NextInCycle();
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ void wxWindowMac::Init()
|
|||||||
// generic
|
// generic
|
||||||
InitBase();
|
InitBase();
|
||||||
|
|
||||||
|
m_isBeingDeleted = FALSE;
|
||||||
m_backgroundTransparent = FALSE;
|
m_backgroundTransparent = FALSE;
|
||||||
|
|
||||||
// as all windows are created with WS_VISIBLE style...
|
// as all windows are created with WS_VISIBLE style...
|
||||||
@@ -139,6 +140,8 @@ wxWindowMac::~wxWindowMac()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_isBeingDeleted = TRUE;
|
||||||
|
|
||||||
#ifndef __WXUNIVERSAL__
|
#ifndef __WXUNIVERSAL__
|
||||||
// VS: make sure there's no wxFrame with last focus set to us:
|
// VS: make sure there's no wxFrame with last focus set to us:
|
||||||
for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
|
for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
|
||||||
|
|||||||
@@ -107,10 +107,10 @@ bool wxFrame::Create(wxWindow *parent,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ;
|
MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ;
|
||||||
|
|
||||||
m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ;
|
m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ;
|
||||||
SetThemeWindowBackground( (WindowRef) m_macWindow , m_macWindowBackgroundTheme , false ) ;
|
SetThemeWindowBackground( (WindowRef) m_macWindow , m_macWindowBackgroundTheme , false ) ;
|
||||||
|
|
||||||
wxModelessWindows.Append(this);
|
wxModelessWindows.Append(this);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -119,7 +119,6 @@ bool wxFrame::Create(wxWindow *parent,
|
|||||||
wxFrame::~wxFrame()
|
wxFrame::~wxFrame()
|
||||||
{
|
{
|
||||||
m_isBeingDeleted = TRUE;
|
m_isBeingDeleted = TRUE;
|
||||||
|
|
||||||
DeleteAllBars();
|
DeleteAllBars();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,6 +77,8 @@ wxRadioBox::wxRadioBox()
|
|||||||
|
|
||||||
wxRadioBox::~wxRadioBox()
|
wxRadioBox::~wxRadioBox()
|
||||||
{
|
{
|
||||||
|
m_isBeingDeleted = TRUE;
|
||||||
|
|
||||||
wxRadioButton *next,*current;
|
wxRadioButton *next,*current;
|
||||||
|
|
||||||
current=m_radioButtonCycle->NextInCycle();
|
current=m_radioButtonCycle->NextInCycle();
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ void wxWindowMac::Init()
|
|||||||
// generic
|
// generic
|
||||||
InitBase();
|
InitBase();
|
||||||
|
|
||||||
|
m_isBeingDeleted = FALSE;
|
||||||
m_backgroundTransparent = FALSE;
|
m_backgroundTransparent = FALSE;
|
||||||
|
|
||||||
// as all windows are created with WS_VISIBLE style...
|
// as all windows are created with WS_VISIBLE style...
|
||||||
@@ -139,6 +140,8 @@ wxWindowMac::~wxWindowMac()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_isBeingDeleted = TRUE;
|
||||||
|
|
||||||
#ifndef __WXUNIVERSAL__
|
#ifndef __WXUNIVERSAL__
|
||||||
// VS: make sure there's no wxFrame with last focus set to us:
|
// VS: make sure there's no wxFrame with last focus set to us:
|
||||||
for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
|
for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
|
||||||
|
|||||||
Reference in New Issue
Block a user