From 70ba9a8c45ad20f9c75233bc70b1a77c4ee56b98 Mon Sep 17 00:00:00 2001 From: pescuma Date: Tue, 3 Jun 2008 06:08:38 +0000 Subject: Fix for AIM smileys Added support for IEView and Clist Modern Started Tlen.emo git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@109 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Plugins/emoticons/sdk/m_smileyadd.h | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'Plugins/emoticons/sdk/m_smileyadd.h') diff --git a/Plugins/emoticons/sdk/m_smileyadd.h b/Plugins/emoticons/sdk/m_smileyadd.h index 67ede1a..af2b9f5 100644 --- a/Plugins/emoticons/sdk/m_smileyadd.h +++ b/Plugins/emoticons/sdk/m_smileyadd.h @@ -158,6 +158,58 @@ typedef struct //lParam = (LPARAM) (SMADD_BATCHPARSERES*) &smgp; //pointer to SMADD_BATCHPARSERES #define MS_SMILEYADD_BATCHFREE "SmileyAdd/BatchFree" +//find smiley in text, API could be called iterativly, on each iteration the remainder +//of the string after last smiley processed +//wParam = (WPARAM) 0; not used +//lParam = (LPARAM) (SMADD_PARSE*) &smgp; //pointer to SMADD_PARSE +typedef struct +{ + int cbSize; //size of the structure + const char* Protocolname; //protocol to use... if you have defined a protocol, u can + //use your own protocol name. Smiley add wil automatically + //select the smileypack that is defined for your protocol. + //Or, use "Standard" for standard smiley set. Or "ICQ", "MSN" + //if you prefer those icons. + //If not found or NULL: "Standard" will be used + char* str; //String to parse + HICON SmileyIcon; //RETURN VALUE: the Icon handle is responsibility of the reciever + //it must be destroyed with DestroyIcon when not needed. + unsigned startChar; //Starting smiley character + //Because of iterative nature of the API caller should set this + //parameter to correct value + unsigned size; //Number of characters in smiley (0 if not found) + //Because of iterative nature of the API caller should set this + //parameter to correct value +} SMADD_PARSE; + +#define MS_SMILEYADD_PARSE "SmileyAdd/Parse" + +//find smiley in text, API could be called iterativly, on each iteration the remainder +//of the string after last smiley processed +//wParam = (WPARAM) 0; not used +//lParam = (LPARAM) (SMADD_PARSE*) &smgp; //pointer to SMADD_PARSE +typedef struct +{ + int cbSize; //size of the structure + const char* Protocolname; //protocol to use... if you have defined a protocol, u can + //use your own protocol name. Smiley add wil automatically + //select the smileypack that is defined for your protocol. + //Or, use "Standard" for standard smiley set. Or "ICQ", "MSN" + //if you prefer those icons. + //If not found or NULL: "Standard" will be used + wchar_t* str; //String to parse + HICON SmileyIcon; //RETURN VALUE: the Icon handle is responsibility of the reciever + //it must be destroyed with DestroyIcon when not needed. + unsigned startChar; //Starting smiley character + //Because of iterative nature of the API caller should set this + //parameter to correct value + unsigned size; //Number of characters in smiley (0 if not found) + //Because of iterative nature of the API caller should set this + //parameter to correct value +} SMADD_PARSEW; + +#define MS_SMILEYADD_PARSEW "SmileyAdd/ParseW" + typedef struct { unsigned cbSize; //size of the structure -- cgit v1.2.3