]> git.saurik.com Git - wxWidgets.git/commitdiff
tooltip fix: compile-time test removed, comment explaining it added
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 Mar 2000 17:37:18 +0000 (17:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 Mar 2000 17:37:18 +0000 (17:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tbar95.cpp

index e101ced821957b67ec9cee21c60a357ea985c16e..2cc55c279741eb10f428c12430657cbb615ce7f9 100644 (file)
@@ -705,11 +705,14 @@ bool wxToolBar::MSWOnNotify(int WXUNUSED(idCtrl),
         {
             ttText->lpszText = (wxChar *)help.c_str();
         }
-#if (_WIN32_IE >= 0x0300)
         else
         {
-            // FIXME this is a temp hack only until I understand better what
-            //       must be done in both ANSI and Unicode builds
+            // VZ: I don't know why it happens, but the versions of
+            //     comctl32.dll starting from 4.70 sometimes send TTN_NEEDTEXTW 
+            //     even to ANSI programs (normally, this message is supposed
+            //     to be sent to Unicode programs only) - hence we need to
+            //     handle it as well, otherwise no tooltips will be shown in
+            //     this case
 
             size_t lenAnsi = help.Len();
             #ifdef __MWERKS__
@@ -731,7 +734,6 @@ bool wxToolBar::MSWOnNotify(int WXUNUSED(idCtrl),
 
             delete [] pwz;
         }
-#endif // _WIN32_IE >= 0x0300
     }
 
     // For backward compatibility...