-WXLRESULT
-wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
-{
- if ( nMsg == WM_PRINTCLIENT )
- {
- // we have to process WM_PRINTCLIENT ourselves as otherwise the radio
- // buttons background would never be drawn unless we have a parent with
- // non default background
-
- // so check first if we have one
- if ( !HandlePrintClient((WXHDC)wParam) )
- {
- // no, we don't, erase the background ourselves (don't use our own
- // colour as with static box, see comments there)
- wxBrush brush(GetParent()->GetBackgroundColour());
- wxFillRect(GetHwnd(), (HDC)wParam, GetHbrushOf(brush));
- }
-
- return 0;
- }
-
- return wxStaticBox::MSWWindowProc(nMsg, wParam, lParam);
-}
-