]> git.saurik.com Git - wxWidgets.git/commitdiff
mingw32 compilation fixes (unfortunately, this effectively disables placing controls...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 12 Nov 1999 14:50:29 +0000 (14:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 12 Nov 1999 14:50:29 +0000 (14:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tbar95.cpp

index 6617cd587abc8e5b82d5a85a36a0742c263ab8e4..64ca4f176ca1ce0547f8fd3907cf910e274c5cca 100644 (file)
@@ -32,6 +32,7 @@
     #include "wx/log.h"
     #include "wx/intl.h"
     #include "wx/dynarray.h"
+    #include "wx/settings.h"
 #endif
 
 #if wxUSE_BUTTONBAR && wxUSE_TOOLBAR && defined(__WIN95__)
@@ -397,6 +398,8 @@ bool wxToolBar95::CreateTools()
 
     delete [] buttons;
 
+    // TBBUTTONINFO struct declaration is missing from mingw32 headers
+#ifndef __GNUWIN32__
     // adjust the controls size to fit nicely in the toolbar
     size_t nControls = controlIds.GetCount();
     for ( size_t nCtrl = 0; nCtrl < nControls; nCtrl++ )
@@ -439,6 +442,7 @@ bool wxToolBar95::CreateTools()
 
         control->Move(r.left, r.top + diff / 2);
     }
+#endif // __GNUWIN32__
 
     (void)::SendMessage(GetHwnd(), TB_AUTOSIZE, (WPARAM)0, (LPARAM) 0);