From 4453b38d02752a7e9f44a89fe3348e97c2ab1c5f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 May 2006 15:58:29 +0000 Subject: [PATCH] made RelayEvent() static git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/tooltip.h | 2 +- src/msw/tooltip.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- 2.45.2