- // 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)
- wxFillRect(GetHwnd(), (HDC)wParam,
- GetHbrushOf(wxBrush(GetParent()->GetBackgroundColour())));
- }
-
- return 0;
+ WXLRESULT res = wxControl::MSWWindowProc(nMsg, wParam, lParam);
+ wxRect rect = GetRect();
+ GetParent()->Refresh(true, & rect);
+ return res;