diff options
author | George Hazan <george.hazan@gmail.com> | 2014-06-11 17:50:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-06-11 17:50:10 +0000 |
commit | 393c8dd0345138e00b6a5a1e13b06f60c83e02e8 (patch) | |
tree | efe30c65cd729d81af51bd2bacdd093a32d38d81 /plugins/ExternalAPI/m_text.h | |
parent | 075c7d0030e543e59adceae9e73c73cbb661482f (diff) |
ansi popups dead
git-svn-id: http://svn.miranda-ng.org/main/trunk@9433 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI/m_text.h')
-rw-r--r-- | plugins/ExternalAPI/m_text.h | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/plugins/ExternalAPI/m_text.h b/plugins/ExternalAPI/m_text.h index 666c88411a..d5a1beaff8 100644 --- a/plugins/ExternalAPI/m_text.h +++ b/plugins/ExternalAPI/m_text.h @@ -40,13 +40,7 @@ typedef struct _tagMTEXT_interface { size_t cbSize;
DWORD version;
HANDLE (DLL_CALLCONV *Register) (const char *userTitle, DWORD options);
- HANDLE (DLL_CALLCONV *Create) (HANDLE userHandle, char *text);
- HANDLE (DLL_CALLCONV *CreateW) (HANDLE userHandle, WCHAR *text);
- #if defined(UNICODE) || defined (_UNICODE)
- HANDLE (DLL_CALLCONV *CreateT) (HANDLE userHandle, WCHAR *text);
- #else
- HANDLE (DLL_CALLCONV *CreateT) (HANDLE userHandle, char *text);
- #endif
+ HANDLE (DLL_CALLCONV *Create) (HANDLE userHandle, TCHAR *text);
HANDLE (DLL_CALLCONV *CreateEx) (HANDLE userHandle, MCONTACT hContact, void *text, DWORD flags);
int (DLL_CALLCONV *Measure) (HDC dc, SIZE *sz, HANDLE text);
int (DLL_CALLCONV *Display) (HDC dc, POINT pos, SIZE sz, HANDLE text);
@@ -65,12 +59,7 @@ typedef struct _tagMTEXT_interface { __forceinline INT_PTR mir_getMTI( MTEXT_INTERFACE* dest )
{
dest->cbSize = sizeof(*dest);
- INT_PTR result = CallService( MS_TEXT_GETINTERFACE, 0, (LPARAM)dest );
- #if defined(UNICODE) || defined (_UNICODE)
- dest->CreateT = dest->CreateW;
- #else
- dest->CreateT = dest->Create;
- #endif
+ INT_PTR result = CallService(MS_TEXT_GETINTERFACE, 0, (LPARAM)dest);
return result;
}
@@ -195,19 +184,6 @@ __inline HANDLE MTextRegister(const char *userTitle, DWORD options) }
#endif // MTEXT_NOHELPERS
-// allocate text object
-// wParam = (WPARAM)(HANDLE)userHandle
-// lParam = (LPARAM)(char *)text
-// result = (LRESULT)(HANDLE)textHandle
-#define MS_TEXT_CREATE "MText/Create"
-
-#ifndef MTEXT_NOHELPERS
-__inline HANDLE MTextCreate(HANDLE userHandle, char *text)
-{
- return (HANDLE)CallService(MS_TEXT_CREATE, (WPARAM)userHandle, (LPARAM)text);
-}
-#endif // MTEXT_NOHELPERS
-
// allocate text object (unicode)
// wParam = (WPARAM)(HANDLE)userHandle
// lParam = (LPARAM)(WCHAR *)text
|