]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch #1198401(GroupBox background painting cure).
authorStefan Neis <Stefan.Neis@t-online.de>
Sat, 14 May 2005 12:33:38 +0000 (12:33 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sat, 14 May 2005 12:33:38 +0000 (12:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/radiobox.cpp
src/os2/window.cpp

index 1241756dd085f04478839d0dd386f1481134070c..fe73e0207019e2243a4761c8cfe1f128e4292867 100644 (file)
@@ -646,7 +646,6 @@ void wxRadioBox::DoSetSize(
                           ,(LONG)nMaxHeight
                           ,SWP_ZORDER | SWP_SIZE | SWP_MOVE | SWP_SHOW
                          );
-        GetParent()->Refresh();
         //
         // Where do we put the next button?
         //
index 5bbfaf1fde2646849ce78880bbb47f31fe219b6b..1fbe379798d81f8c9db349c5255f07d7678edd14 100644 (file)
@@ -394,6 +394,10 @@ bool wxWindowOS2::Create(
                   _T("wxStaticBox can't be used as a window parent!") );
 #endif // wxUSE_STATBOX
 
+     // Ensure groupbox backgrounds are painted
+     if (IsKindOf(CLASSINFO(wxPanel)))
+         lStyle &= ~wxCLIP_CHILDREN;
+
     if ( !CreateBase( pParent
                      ,vId
                      ,rPos