X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21c6080db7c3abb60ac0143da009339225d69868..3c99602b795292c52aafd12c71cac668ffdbf08f:/src/msw/statbox.cpp?ds=sidebyside diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index 5631d9de41..ae9cb75ed0 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -267,7 +267,7 @@ WXHRGN wxStaticBox::MSWGetRegionWithoutChildren() LONG style = ::GetWindowLong(child, GWL_STYLE); wxString str(wxGetWindowClass(child)); str.UpperCase(); - if ( str == wxT("BUTTON") && (style & BS_GROUPBOX) != 0 ) + if ( str == wxT("BUTTON") && (style & BS_GROUPBOX) == BS_GROUPBOX ) { // Don't clip any static boxes, not just this one. This will // result in flicker in overlapping static boxes, but at least