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:
@@ -79,7 +79,6 @@ END_EVENT_TABLE()
|
||||
void wxWindowDFB::Init()
|
||||
{
|
||||
m_isShown = true;
|
||||
m_frozenness = 0;
|
||||
m_tlw = NULL;
|
||||
m_overlays = NULL;
|
||||
}
|
||||
@@ -638,20 +637,10 @@ void wxWindowDFB::Update()
|
||||
GetParent()->Update();
|
||||
}
|
||||
|
||||
void wxWindowDFB::Freeze()
|
||||
void wxWindowDFB::DoThaw()
|
||||
{
|
||||
m_frozenness++;
|
||||
}
|
||||
|
||||
void wxWindowDFB::Thaw()
|
||||
{
|
||||
wxASSERT_MSG( IsFrozen(), "Thaw() without matching Freeze()" );
|
||||
|
||||
if ( --m_frozenness == 0 )
|
||||
{
|
||||
if ( IsShown() )
|
||||
DoRefreshWindow();
|
||||
}
|
||||
if ( IsShown() )
|
||||
DoRefreshWindow();
|
||||
}
|
||||
|
||||
void wxWindowDFB::PaintWindow(const wxRect& rect)
|
||||
@@ -1080,7 +1069,7 @@ wxWindow* wxFindWindowAtPointer(wxPoint& pt)
|
||||
return wxFindWindowAtPoint(pt = wxGetMousePosition());
|
||||
}
|
||||
|
||||
wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
|
||||
wxWindow* wxFindWindowAtPoint(const wxPoint& WXUNUSED(pt))
|
||||
{
|
||||
wxFAIL_MSG( "wxFindWindowAtPoint not implemented" );
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user