]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed test for button style - styles contain other style bits
authorJulian Smart <julian@anthemion.co.uk>
Wed, 20 Apr 2005 10:34:52 +0000 (10:34 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 20 Apr 2005 10:34:52 +0000 (10:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statbox.cpp

index 5631d9de41f506906439406e4c26213f930250e8..ae9cb75ed0f6b038ec4a64afbf13c438fa457a09 100644 (file)
@@ -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