From 455c8f1d554e4c11b9cd0c49346947b1eadbf2aa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 29 Nov 2005 22:10:04 +0000 Subject: [PATCH] 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 --- src/msw/radiobox.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.47.2