- // call this from the derived class MSWControlColor() if you want to always
- // paint the background (as all opaque controls do)
- WXHBRUSH MSWControlColorSolid(WXHDC pDC)
- {
- return MSWControlColorSolid(pDC, GetBackgroundColour());
- }
-
- // common part of the 3 methods above
- WXHBRUSH MSWControlColorSolid(WXHDC pDC, wxColour colBg);
+ // common part of the 3 functions above: pass wxNullColour to use the
+ // appropriate background colour (meaning ours or our parents) or a fixed
+ // one
+ virtual WXHBRUSH DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd);