Ok, so we don't need the extra bool at all, we can just zero the sizer

pointer in wxSizerItem.  :-)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2002-12-30 15:26:47 +00:00
parent 00976fe56b
commit 96fdbb60f1
2 changed files with 7 additions and 16 deletions

View File

@@ -50,6 +50,10 @@ public:
virtual void DeleteWindows();
// Enable deleting the SizerItem without destroying the contained sizer.
void DetachSizer()
{ m_sizer = 0; }
virtual wxSize GetSize();
virtual wxSize CalcMin();
virtual void SetDimension( wxPoint pos, wxSize size );
@@ -82,8 +86,6 @@ public:
{ m_border = border; }
void Show ( bool show )
{ m_show = show; }
void SetDeleteItem( bool deleteItem = TRUE )
{ m_deleteItem = deleteItem; }
wxWindow *GetWindow() const
{ return m_window; }
@@ -124,11 +126,6 @@ protected:
// is shrinked. it is safer to preserve initial value.
float m_ratio;
// If TRUE, and the item is a sizer, delete it when the
// sizeritem is destroyed. Not used for any other type
// of item right now.
bool m_deleteItem;
wxObject *m_userData;
private: