diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index 5ee58e4365..86fbd228b1 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -685,6 +685,10 @@ WXHRGN wxRadioBox::MSWGetRegionWithoutChildren() const size_t count = GetCount(); for ( size_t i = 0; i < count; ++i ) { + // don't clip out hidden children + if ( !IsItemShown(i) ) + continue; + ::GetWindowRect((*m_radioButtons)[i], &rc); AutoHRGN hrgnchild(::CreateRectRgnIndirect(&rc)); ::CombineRgn(hrgn, hrgn, hrgnchild, RGN_DIFF);