From: Vadim Zeitlin Date: Tue, 29 Nov 2005 22:10:04 +0000 (+0000) Subject: don't clip out hidden radiobox buttons: otherwise they're displayed incorrectly when... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/455c8f1d554e4c11b9cd0c49346947b1eadbf2aa don't clip out hidden radiobox buttons: otherwise they're displayed incorrectly when themes are in use git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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);