use wxImage to load icons in non-native formats
[wxWidgets.git] / 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,