+WXHRGN wxRadioBox::MSWGetRegionWithoutChildren()
+{
+ RECT rc;
+ ::GetWindowRect(GetHwnd(), &rc);
+ HRGN hrgn = ::CreateRectRgn(rc.left, rc.top, rc.right + 1, rc.bottom + 1);
+
+ const size_t count = GetCount();
+ for ( size_t i = 0; i < count; ++i )
+ {
+ ::GetWindowRect((*m_radioButtons)[i], &rc);
+ AutoHRGN hrgnchild(::CreateRectRgnIndirect(&rc));
+ ::CombineRgn(hrgn, hrgn, hrgnchild, RGN_DIFF);
+ }
+
+ return (WXHRGN)hrgn;
+}
+
+WXLRESULT wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
+{
+#ifndef __WXWINCE__
+ if ( nMsg == WM_PRINTCLIENT )
+ {
+ // first check to see if a parent window knows how to paint us better
+ for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
+ if ( win->MSWPrintChild(this, wParam, lParam) )
+ return true;
+
+ // nope, so lets do it ourselves
+ RECT rc;
+ WXHBRUSH hbr = DoMSWControlColor((HDC)wParam, wxNullColour);
+ if ( !hbr )
+ {
+ wxBrush *brush = wxTheBrushList->FindOrCreateBrush(GetBackgroundColour(), wxSOLID);
+ hbr = (WXHBRUSH)brush->GetResourceHandle();
+ }
+
+ ::GetClientRect(GetHwnd(), &rc);
+ ::FillRect((HDC)wParam, &rc, (HBRUSH)hbr);
+
+ return true;
+ }
+#endif
+ // __WXWINCE__
+
+ return wxStaticBox::MSWWindowProc(nMsg, wParam, lParam);
+}