X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18ba9da6b94a34129b6b04494033905a213a0114..3995f8eb97f3fa807fb7d805bb8b86425f490b06:/src/msw/tooltip.cpp diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index b7106c38ad..f7a4ab2bbc 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -36,6 +36,11 @@ #include #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;