total wxBrush cleanup: made private stuff private, fixed data (un)sharing, create HBRUSH on demand only, added asserts/checks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-02-04 01:35:30 +00:00
parent b802788865
commit cafbad8f17
3 changed files with 291 additions and 213 deletions

View File

@@ -137,7 +137,8 @@ private:
wxColourChanger::wxColourChanger(wxDC& dc) : m_dc(dc)
{
if ( dc.GetBrush().GetStyle() == wxSTIPPLE_MASK_OPAQUE )
const wxBrush& brush = dc.GetBrush();
if ( brush.Ok() && brush.GetStyle() == wxSTIPPLE_MASK_OPAQUE )
{
HDC hdc = GetHdcOf(dc);
m_colFgOld = ::GetTextColor(hdc);