// Brushes
wxBrush::wxBrush(void)
{
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
}
wxBrush::~wxBrush()
{
- if (wxTheBrushList)
- wxTheBrushList->RemoveBrush(this);
}
wxBrush::wxBrush(const wxColour& col, int Style)
RealizeResource();
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
}
wxBrush::wxBrush(const wxBitmap& stipple)
RealizeResource();
- if ( wxTheBrushList )
- wxTheBrushList->AddBrush(this);
}
bool wxBrush::RealizeResource(void)
// - could choose white always for a quick solution
break;
***/
+#ifndef __WXMICROWIN__
case wxBDIAGONAL_HATCH:
M_BRUSHDATA->m_hBrush = (WXHBRUSH) CreateHatchBrush(HS_BDIAGONAL,ms_colour) ;
break ;
else
M_BRUSHDATA->m_hBrush = (WXHBRUSH) CreateSolidBrush(ms_colour) ;
break ;
+#endif
case wxSOLID:
default:
M_BRUSHDATA->m_hBrush = (WXHBRUSH) CreateSolidBrush(ms_colour) ;