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 ++--- plugins/Popup/src/services.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/Popup') 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); diff --git a/plugins/Popup/src/services.cpp b/plugins/Popup/src/services.cpp index c89388e586..1d54e21027 100644 --- a/plugins/Popup/src/services.cpp +++ b/plugins/Popup/src/services.cpp @@ -263,7 +263,7 @@ INT_PTR Popup_ShowMessageW(WPARAM wParam, LPARAM lParam) default: // No no no... you must give me a good value. return -1; } - return Popup_AddPopup2((WPARAM)&ppd2, (LPARAM)((lParam & 0x80000000) ? APF_NO_HISTORY : 0)); + return Popup_AddPopup2((WPARAM)&ppd2, (lParam & 0x80000000) ? APF_NO_HISTORY : 0); } INT_PTR Popup_ShowMessage(WPARAM wParam, LPARAM lParam) -- cgit v1.2.3