]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/wince/tbarwce.cpp
workaround for blocking behaviour under carbon when running in classic
[wxWidgets.git] / src / msw / wince / tbarwce.cpp
index 79baa1c7b22299f3d878b5770c36d418e51f7dee..f5b7b164ef2a9552fa6d5b759ae1edd8f527137d 100644 (file)
@@ -39,7 +39,9 @@
     #include "wx/control.h"
 #endif
 
-#if wxUSE_TOOLBAR && wxUSE_TOOLBAR_NATIVE
+// Use the WinCE-specific toolbar only if we're either compiling
+// with a WinCE earlier than 4, or we wish to emulate a PocketPC-style UI
+#if wxUSE_TOOLBAR && wxUSE_TOOLBAR_NATIVE && (_WIN32_WCE < 400 || wxUSE_POCKETPC_UI)
 
 #include "wx/toolbar.h"