]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tbar95.cpp
use new style creation (MSWCreateControl() and MSWGetStyle()); adjust the drop down...
[wxWidgets.git] / src / msw / tbar95.cpp
index 230bddb9eb80eddea82e518c57686660aeca8b77..44bd62f13b195467955f341b84dba7da0fca46e6 100644 (file)
     #include "wx/control.h"
 #endif
 
-#if wxUSE_TOOLBAR && defined(__WIN95__) && wxUSE_TOOLBAR_NATIVE
+#if wxUSE_TOOLBAR && wxUSE_TOOLBAR_NATIVE && (!defined(_WIN32_WCE) || (_WIN32_WCE >= 400 && !wxUSE_POCKETPC_UI))
 
 #include "wx/toolbar.h"
 
-#if !defined(__GNUWIN32__) && !defined(__SALFORDC__)
-    #include "malloc.h"
-#endif
-
 #include "wx/msw/private.h"
 
 // include <commctrl.h> "properly"
@@ -915,7 +911,7 @@ bool wxToolBar::MSWCommand(WXUINT WXUNUSED(cmd), WXWORD id)
     if ( !tool )
         return FALSE;
 
-    bool toggled;
+    bool toggled = false; // just to suppress warnings
 
     if ( tool->CanBeToggled() )
     {