From 50c2fbbb1f7f6f233c980d7e4a52151fb72820f7 Mon Sep 17 00:00:00 2001 From: George Hazan <ghazan@miranda.im> Date: Sun, 9 May 2021 18:45:30 +0300 Subject: suddenly: tipper services were used as string constants (cherry picked from commit 15fcbbc128178ea5a4cdb1a58927a43ea740be88) --- protocols/Weather/src/stdafx.h | 1 + protocols/Weather/src/weather_mwin.cpp | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'protocols/Weather') diff --git a/protocols/Weather/src/stdafx.h b/protocols/Weather/src/stdafx.h index 82bbbdaa87..bd4cddffbe 100644 --- a/protocols/Weather/src/stdafx.h +++ b/protocols/Weather/src/stdafx.h @@ -55,6 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include <m_popup.h> #include <m_acc.h> +#include <m_tipper.h> #include <m_weather.h> #include <m_toptoolbar.h> diff --git a/protocols/Weather/src/weather_mwin.cpp b/protocols/Weather/src/weather_mwin.cpp index 27c6664a1e..a1cfff3ddd 100644 --- a/protocols/Weather/src/weather_mwin.cpp +++ b/protocols/Weather/src/weather_mwin.cpp @@ -20,9 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "stdafx.h" -#define MS_TOOLTIP_SHOWTIP "mToolTip/ShowTip" -#define MS_TOOLTIP_HIDETIP "mToolTip/HideTip" - static MWindowList hMwinWindowList; static HANDLE hFontHook; @@ -95,7 +92,7 @@ static LRESULT CALLBACK wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara ti.hItem = (HANDLE)data->hContact; ti.ptCursor = pt; ti.isTreeFocused = 1; - CallService(MS_TOOLTIP_SHOWTIP, 0, (LPARAM)&ti); + CallService(MS_TIPPER_SHOWTIP, 0, (LPARAM)&ti); } break; -- cgit v1.2.3