]> git.saurik.com Git - wxWidgets.git/commitdiff
MOre wxUSE_... fixes
authorJulian Smart <julian@anthemion.co.uk>
Tue, 23 Dec 2003 19:42:05 +0000 (19:42 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 23 Dec 2003 19:42:05 +0000 (19:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp
src/mac/toplevel.cpp

index d6b4fbd2cebe1bd9e3e679bd4aad430bae8ff70e..190bcd89465e2479cb5b0084f977f66dd1dad4be 100644 (file)
@@ -1129,8 +1129,12 @@ void wxTopLevelWindowMac::DoMoveWindow(int x, int y, int width, int height)
         if ( IsKindOf( CLASSINFO( wxFrame ) ) )
         {
             wxFrame* frame = (wxFrame*) this ;
+#if wxUSE_STATUSBAR
             frame->PositionStatusBar();
+#endif            
+#if wxUSE_TOOLBAR
             frame->PositionToolBar();
+#endif            
         }
         if ( doMove )
             wxWindowMac::MacTopLevelWindowChangedPosition() ; // like this only children will be notified
index d6b4fbd2cebe1bd9e3e679bd4aad430bae8ff70e..190bcd89465e2479cb5b0084f977f66dd1dad4be 100644 (file)
@@ -1129,8 +1129,12 @@ void wxTopLevelWindowMac::DoMoveWindow(int x, int y, int width, int height)
         if ( IsKindOf( CLASSINFO( wxFrame ) ) )
         {
             wxFrame* frame = (wxFrame*) this ;
+#if wxUSE_STATUSBAR
             frame->PositionStatusBar();
+#endif            
+#if wxUSE_TOOLBAR
             frame->PositionToolBar();
+#endif            
         }
         if ( doMove )
             wxWindowMac::MacTopLevelWindowChangedPosition() ; // like this only children will be notified