From e48bae4c6ccf1003916b3960f30816ce8aaa955b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 May 2015 21:02:26 +0000 Subject: - additional operator LPARAM() for _A2T & _T2A; - we don't need StrConvA anymore; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@13952 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Popup/src/common.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/Popup/src/common.h') diff --git a/plugins/Popup/src/common.h b/plugins/Popup/src/common.h index 819d9fabe0..df079a3c9d 100644 --- a/plugins/Popup/src/common.h +++ b/plugins/Popup/src/common.h @@ -82,13 +82,12 @@ inline INT_PTR DBGetContactSettingStringX(MCONTACT hContact, const char *ModuleN inline void AddTooltipTranslated(HWND hwndToolTip, HWND hwnd, int id, RECT rc, char *text) { - TOOLINFO ti = { 0 }; ti.cbSize = sizeof(TOOLINFO); ti.hwnd = hwnd; ti.uId = id; - SendMessage(hwndToolTip, TTM_DELTOOL, 0, (LPARAM)(LPTOOLINFO)&ti); + SendMessage(hwndToolTip, TTM_DELTOOL, 0, (LPARAM)&ti); LPTSTR wtext = mir_a2t(text); @@ -98,7 +97,7 @@ inline void AddTooltipTranslated(HWND hwndToolTip, HWND hwnd, int id, RECT rc, c ti.hinst = hInst; ti.lpszText = TranslateTS(wtext); ti.rect = rc; - SendMessage(hwndToolTip, TTM_ADDTOOL, 0, (LPARAM)(LPTOOLINFO)&ti); + SendMessage(hwndToolTip, TTM_ADDTOOL, 0, (LPARAM)&ti); mir_free(wtext); -- cgit v1.2.3