From 75b1ff75c42644eb36552762652e4b0c9ff071bc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Nov 2012 14:11:01 +0000 Subject: final switch to the typed icolib api git-svn-id: http://svn.miranda-ng.org/main/trunk@2152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ExternalAPI/m_text.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/ExternalAPI/m_text.h') diff --git a/plugins/ExternalAPI/m_text.h b/plugins/ExternalAPI/m_text.h index be1b3e4a0e..a87b7d36f0 100644 --- a/plugins/ExternalAPI/m_text.h +++ b/plugins/ExternalAPI/m_text.h @@ -263,7 +263,7 @@ __inline int MTextMeasure(HDC dc, SIZE *sz, HANDLE text) displayInfo.pos.x = displayInfo.pos.y = 0; displayInfo.sz = *sz; displayInfo.text = text; - int result = (int)CallService(MS_TEXT_MEASURE, (WPARAM)&displayInfo, (LPARAM)0); + int result = (int)CallService(MS_TEXT_MEASURE, (WPARAM)&displayInfo, 0); *sz = displayInfo.sz; return result; } @@ -287,7 +287,7 @@ __inline int MTextDisplay(HDC dc, POINT pos, SIZE sz, HANDLE text) displayInfo.pos = pos; displayInfo.sz = sz; displayInfo.text = text; - return (int)CallService(MS_TEXT_DISPLAY, (WPARAM)&displayInfo, (LPARAM)0); + return (int)CallService(MS_TEXT_DISPLAY, (WPARAM)&displayInfo, 0); } #endif // MTEXT_NOHELPERS @@ -303,7 +303,7 @@ __inline int MTextSetParent(HANDLE text, HWND hwnd, RECT rect) info.text = text; info.hwnd = hwnd; info.rc = rect; - return (int)CallService(MS_TEXT_SETPARENT, (WPARAM)&info, (LPARAM)0); + return (int)CallService(MS_TEXT_SETPARENT, (WPARAM)&info, 0); } #endif // MTEXT_NOHELPERS @@ -325,7 +325,7 @@ __inline int MTextSendMessage(HWND hwnd, HANDLE text, UINT msg, WPARAM wParam, L message.msg = msg; message.wParam = wParam; message.lParam = lParam; - return (int)CallService(MS_TEXT_SENDMESSAGE, (WPARAM)&message, (LPARAM)0); + return (int)CallService(MS_TEXT_SENDMESSAGE, (WPARAM)&message, 0); } #endif // MTEXT_NOHELPERS @@ -336,7 +336,7 @@ __inline int MTextSendMessage(HWND hwnd, HANDLE text, UINT msg, WPARAM wParam, L #ifndef MTEXT_NOHELPERS __inline HWND MTextCreateProxy(HANDLE text) { - return (HWND)CallService(MS_TEXT_CREATEPROXY, (WPARAM)text, (LPARAM)0); + return (HWND)CallService(MS_TEXT_CREATEPROXY, (WPARAM)text, 0); } #endif // MTEXT_NOHELPERS @@ -347,7 +347,7 @@ __inline HWND MTextCreateProxy(HANDLE text) #ifndef MTEXT_NOHELPERS __inline int MTextDestroy(HANDLE text) { - return (int)CallService(MS_TEXT_DESTROY, (WPARAM)text, (LPARAM)0); + return (int)CallService(MS_TEXT_DESTROY, (WPARAM)text, 0); } #endif // MTEXT_NOHELPERS -- cgit v1.2.3