- // this is a hack as if the background is themed, there is no single colour
- // representing it, but sometimes we can't use the pattern brush returned
- // by MSWGetBgBrushForChild() anyhow and then this function is used as
- // fallback
- //
- // the base class version returns bg colour if it had been explicitely set
- // or wxNullColour otherwise
- virtual wxColour MSWGetBgColourForChild(wxWindow *child);
+ // hWndToPaint is normally NULL meaning this window itself, but it can also
+ // be a child of this window which is used by the static box and could be
+ // potentially useful for other transparent controls
+ WXHBRUSH MSWGetBgBrush(WXHDC hDC, WXHWND hWndToPaint = NULL);