]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tooltip.cpp
Added support for item clicks
[wxWidgets.git] / src / msw / tooltip.cpp
index b7106c38ad6a73fe812cbf6e5ec67c200bea5c56..f7a4ab2bbc19cbc12be9a0c785c04959e98453c6 100644 (file)
 #include <commctrl.h>
 #endif
 
+// ----------------------------------------------------------------------------
+// global variables
+// ----------------------------------------------------------------------------
+
+// the tooltip parent window
 WXHWND wxToolTip::hwndTT = NULL;
 
 // ----------------------------------------------------------------------------
@@ -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;