diff --git a/include/wx/msw/tooltip.h b/include/wx/msw/tooltip.h index 13fdd0069d..667e6eec3e 100644 --- a/include/wx/msw/tooltip.h +++ b/include/wx/msw/tooltip.h @@ -40,7 +40,7 @@ public: // ------------------------------- // should be called in responde to WM_MOUSEMOVE - void RelayEvent(WXMSG *msg); + static void RelayEvent(WXMSG *msg); // add a window to the tooltip control void Add(WXHWND hwnd); diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index 84f9a38084..8fde93e577 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -194,6 +194,7 @@ void wxToolTip::SetDelay(long milliseconds) // --------------------------------------------------------------------------- // create the tooltip ctrl for our parent frame if it doesn't exist yet +/* static */ WXHWND wxToolTip::GetToolTipCtrl() { if ( !ms_hwndTT ) @@ -222,6 +223,7 @@ WXHWND wxToolTip::GetToolTipCtrl() return ms_hwndTT; } +/* static */ void wxToolTip::RelayEvent(WXMSG *msg) { (void)SendTooltipMessage(GetToolTipCtrl(), TTM_RELAYEVENT, msg);