renamed wxWindow::Clear() to ClearBackground() (fixes bug 783576)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -977,6 +977,17 @@ bool wxWindowBase::IsExposed(int x, int y, int w, int h) const
|
||||
return m_updateRegion.Contains(x, y, w, h) != wxOutRegion;
|
||||
}
|
||||
|
||||
void wxWindowBase::ClearBackground()
|
||||
{
|
||||
// wxGTK uses its own version, no need to add never used code
|
||||
#ifndef __WXGTK__
|
||||
wxClientDC dc((wxWindow *)this);
|
||||
wxBrush brush(GetBackgroundColour(), wxSOLID);
|
||||
dc.SetBackground(brush);
|
||||
dc.Clear();
|
||||
#endif // __WXGTK__
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// find child window by id or name
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user