]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tooltip.cpp
added several other accel strings
[wxWidgets.git] / src / msw / tooltip.cpp
index b7106c38ad6a73fe812cbf6e5ec67c200bea5c56..cbe06c171143c622a398148ad0ac3c274a58fe46 100644 (file)
 #include <commctrl.h>
 #endif
 
-WXHWND wxToolTip::hwndTT = NULL;
+// ----------------------------------------------------------------------------
+// global variables
+// ----------------------------------------------------------------------------
+
+// the tooltip parent window
+WXHWND wxToolTip::hwndTT = (WXHWND)NULL;
 
 // ----------------------------------------------------------------------------
 // private classes
@@ -125,6 +130,12 @@ WXHWND wxToolTip::GetToolTipCtrl()
                                 NULL, (HMENU)NULL,
                                 wxGetInstance(),
                                 NULL);
+       if ( hwndTT )
+       {
+           SetWindowPos((HWND)hwndTT, HWND_TOPMOST, 0, 0, 0, 0,
+                        SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
+       }
+
     }
 
     return (WXHWND)hwndTT;