]> git.saurik.com Git - wxWidgets.git/commitdiff
don't strip &s from tooltips (patch 1488318)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 May 2006 23:15:01 +0000 (23:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 May 2006 23:15:01 +0000 (23:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tooltip.cpp

index 8fde93e577c00165b4aa39b98c80555495b39576..8ca70b9ff363b3dc9f4cc3bf9b45d110a8d856bd 100644 (file)
@@ -199,9 +199,11 @@ WXHWND wxToolTip::GetToolTipCtrl()
 {
     if ( !ms_hwndTT )
     {
+        // we want to show the tooltips always (even when the window is not
+        // active) and we don't want to strip "&"s from them
         ms_hwndTT = (WXHWND)::CreateWindow(TOOLTIPS_CLASS,
                                            (LPCTSTR)NULL,
-                                           TTS_ALWAYSTIP,
+                                           TTS_ALWAYSTIP | TTS_NOPREFIX,
                                            CW_USEDEFAULT, CW_USEDEFAULT,
                                            CW_USEDEFAULT, CW_USEDEFAULT,
                                            NULL, (HMENU)NULL,