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
This commit is contained in:
Vadim Zeitlin
2005-11-29 22:10:04 +00:00
parent 3bfa7be977
commit 455c8f1d55

View File

@@ -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);