after latest changes background of radio buttons _not_ inside the notebook wasn't redrawn at all, fixed this

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-04-11 14:41:36 +00:00
parent ed9c472e11
commit 1a784dfc80
4 changed files with 57 additions and 27 deletions

View File

@@ -667,6 +667,30 @@ WXHRGN wxRadioBox::MSWGetRegionWithoutChildren()
return (WXHRGN)hrgn;
}
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)
wxFillRect(GetHwnd(), (HDC)wParam,
GetHbrushOf(wxBrush(GetParent()->GetBackgroundColour())));
}
return 0;
}
return wxStaticBox::MSWWindowProc(nMsg, wParam, lParam);
}
#endif // __WXWINCE__
// ---------------------------------------------------------------------------