- M_BRUSHDATA->m_style = wxSTIPPLE_MASK_OPAQUE;
- else
- M_BRUSHDATA->m_style = wxSTIPPLE;
-
- if (wxTheBrushList) wxTheBrushList->AddBrush(this);
-}
-
-wxBrush::wxBrush(const wxBrush &brush)
-{
- Ref(brush);
-
- if (wxTheBrushList) wxTheBrushList->AddBrush(this);
-}
-
-wxBrush::~wxBrush()
-{
- if (wxTheBrushList) wxTheBrushList->RemoveBrush(this);
-}
-
-wxBrush& wxBrush::operator = (const wxBrush& brush)
-{
- if (*this == brush) return (*this);
- Ref(brush);
- return *this;