X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2819545569bbbfcade45a1bfe91d7c53b7c82f5d..e8c504562f49e124442ca0cf1b17825aabcada88:/src/msw/tooltip.cpp diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index 4e589f1c36..cbe06c1711 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -36,7 +36,12 @@ #include #endif -WXHWND wxToolTip::hwndTT = NULL; +// ---------------------------------------------------------------------------- +// global variables +// ---------------------------------------------------------------------------- + +// the tooltip parent window +WXHWND wxToolTip::hwndTT = (WXHWND)NULL; // ---------------------------------------------------------------------------- // private classes @@ -126,8 +131,10 @@ WXHWND wxToolTip::GetToolTipCtrl() wxGetInstance(), NULL); if ( hwndTT ) - SetWindowPos(hwndTT, HWND_TOPMOST,0, 0, 0, 0, - SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); + { + SetWindowPos((HWND)hwndTT, HWND_TOPMOST, 0, 0, 0, 0, + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); + } }