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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user