move Freeze() and Thaw() to wxWindowBase to ensure that they behave consistently (i.e. recursively, as described in the docs) in all ports; removed different duplications of freeze count from derived classes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-01-05 00:21:31 +00:00
parent 001828ed69
commit 17808a7596
30 changed files with 197 additions and 317 deletions

View File

@@ -62,9 +62,6 @@ public:
virtual void Refresh( bool eraseBackground = true,
const wxRect *rect = NULL );
virtual void Freeze();
virtual void Thaw();
virtual bool IsFrozen() const;
virtual void Update() ;
virtual void ClearBackground();
@@ -86,6 +83,9 @@ protected:
virtual void DoEnable( bool enable );
virtual bool DoPopupMenu( wxMenu *menu, int x, int y );
virtual void DoFreeze();
virtual void DoThaw();
public:
virtual void SetScrollbar( int orient, int pos, int thumbVisible,
int range, bool refresh = true );
@@ -262,9 +262,6 @@ protected:
// For controls like radio buttons which are genuinely composite
wxList m_subControls;
// number of calls to Freeze() minus number of calls to Thaw()
unsigned int m_frozenness;
// the peer object, allowing for cleaner API support
wxMacControl * m_peer ;