]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tbar95.cpp
fix for handling TAB presses in readonly text controls
[wxWidgets.git] / src / msw / tbar95.cpp
index 6f4b505b94fef89b08db97f1ff7e805867b703c0..53a2ef7ce89c584e2029e09a55d2a2c44349e2c7 100644 (file)
@@ -858,6 +858,7 @@ bool wxToolBar::MSWOnNotify(int WXUNUSED(idCtrl),
                             WXLPARAM lParam,
                             WXLPARAM *WXUNUSED(result))
 {
+#if wxUSE_TOOLTIPS
     // First check if this applies to us
     NMHDR *hdr = (NMHDR *)lParam;
 
@@ -879,6 +880,9 @@ bool wxToolBar::MSWOnNotify(int WXUNUSED(idCtrl),
         return FALSE;
 
     return HandleTooltipNotify(code, lParam, tool->GetShortHelp());
+#else
+    return FALSE;
+#endif
 }
 
 // ----------------------------------------------------------------------------