]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/control.cpp
Let wxToolBar assume that no orientation flag means horizontal.
[wxWidgets.git] / src / mac / carbon / control.cpp
index b56dee0d186b0f1114d6571817b4063df8ecb024..6570c1303bca0af2695fd3539e4bc967c49af35e 100644 (file)
@@ -68,15 +68,17 @@ pascal OSStatus wxMacSetupControlBackground( ControlRef iControl , SInt16 iMessa
        switch( iMessage )
        {
                case kControlMsgSetUpBackground :
-               wxControl*  wx = (wxControl*) GetControlReference( iControl ) ;
-               if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) )
-               {
-                       wxDC::MacSetupBackgroundForCurrentPort( wx->MacGetBackgroundBrush() ) ;
-//                             SetThemeBackground( iDepth , iIsColor ) ;
-                       }
-                       else
                        {
-                               status = paramErr ;
+                       wxControl*  wx = (wxControl*) GetControlReference( iControl ) ;
+                       if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) )
+                       {
+                               wxDC::MacSetupBackgroundForCurrentPort( wx->MacGetBackgroundBrush() ) ;
+       //                              SetThemeBackground( iDepth , iIsColor ) ;
+                               }
+                               else
+                               {
+                                       status = paramErr ;
+                               }
                        }
                        break ;
                default :