From 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jul 2016 09:20:25 +0000 Subject: less TCHARs: - TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TipperYM/src/message_pump.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/TipperYM/src/message_pump.cpp') diff --git a/plugins/TipperYM/src/message_pump.cpp b/plugins/TipperYM/src/message_pump.cpp index 4f07b1395d..d19096e067 100644 --- a/plugins/TipperYM/src/message_pump.cpp +++ b/plugins/TipperYM/src/message_pump.cpp @@ -20,6 +20,8 @@ Boston, MA 02111-1307, USA. #include "stdafx.h" +#include + HMODULE hDwmapiDll = 0; HRESULT (WINAPI *MyDwmEnableBlurBehindWindow)(HWND hWnd, DWM_BLURBEHIND *pBlurBehind) = 0; @@ -150,7 +152,7 @@ unsigned int CALLBACK MessagePumpThread(void*) case MUM_GOTSTATUS: { MCONTACT hContact = (MCONTACT)hwndMsg.wParam; - TCHAR *swzMsg = (TCHAR *)hwndMsg.lParam; + wchar_t *swzMsg = (wchar_t *)hwndMsg.lParam; if (opt.bWaitForContent && !bStatusMsgReady && clcitex && clcitex->hItem == (HANDLE)hContact) { if (WaitForContentTimerID) { @@ -282,7 +284,7 @@ INT_PTR ShowTipW(WPARAM wParam, LPARAM lParam) if (wParam) // wParam is char pointer containing text - e.g. status bar tooltip { - clcit2->swzText = mir_tstrdup((TCHAR *)wParam); + clcit2->swzText = mir_tstrdup((wchar_t *)wParam); GetCursorPos(&clcit2->ptCursor); } @@ -313,7 +315,7 @@ int ProtoAck(WPARAM, LPARAM lParam) return 0; if (ack->type == ACKTYPE_AWAYMSG) { - TCHAR *tszMsg = (TCHAR*)ack->lParam; + wchar_t *tszMsg = (wchar_t*)ack->lParam; if (mir_tstrlen(tszMsg)) PostMPMessage(MUM_GOTSTATUS, (WPARAM)ack->hContact, (LPARAM)mir_tstrdup(tszMsg)); } -- cgit v1.2.3