summaryrefslogtreecommitdiff
path: root/Plugins/emoticons/sdk/m_anismiley.h
diff options
context:
space:
mode:
authorpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-03-03 05:05:52 +0000
committerpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-03-03 05:05:52 +0000
commitd8daacf7fa8e899cd32e85aa698d2790f690f4da (patch)
tree181c36ef9e615172f3e4ce3a0925e5a5158e6d6e /Plugins/emoticons/sdk/m_anismiley.h
parentb95d4a9cc2465a53b3bd5ab0805ce9be781ffa8d (diff)
Added handlers for some video sites
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@149 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/emoticons/sdk/m_anismiley.h')
-rw-r--r--Plugins/emoticons/sdk/m_anismiley.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/Plugins/emoticons/sdk/m_anismiley.h b/Plugins/emoticons/sdk/m_anismiley.h
index 321e683..9020e35 100644
--- a/Plugins/emoticons/sdk/m_anismiley.h
+++ b/Plugins/emoticons/sdk/m_anismiley.h
@@ -15,18 +15,25 @@ typedef struct _tagINSERTANISMILEY
HWND hWnd;
union
{
- char * szFilename;
- wchar_t * wcFilename;
- TCHAR * tcsFilename;
+ const char * szFilename;
+ const wchar_t * wcFilename;
+ const TCHAR * tcsFilename;
};
COLORREF dwBackColor;
- int nHeight;
+ int nHeight; // 0 to use default
DWORD dwFlags;
union
{
- char * szText;
- wchar_t * wcText;
- TCHAR * tcsText;
+ const char * szText;
+ const wchar_t * wcText;
+ const TCHAR * tcsText;
+ };
+ int nWidth; // 0 to use default
+ union
+ {
+ const char * szFlashVars;
+ const wchar_t * wcFlashVars;
+ const TCHAR * tcsFlashVars;
};
}INSERTANISMILEY;
#define MS_INSERTANISMILEY "mAnimator/InsertSmiley"
@@ -36,7 +43,7 @@ typedef struct _tagINSERTANISMILEY
#ifdef _cplusplus
extern "C" {
#endif
-static BOOL InsertAnimatedSmiley(HWND _hwnd, TCHAR * _szFilename, COLORREF _dwBack, int _nHeight, TCHAR * _szText)
+static BOOL InsertAnimatedSmiley(HWND _hwnd, const TCHAR * _szFilename, COLORREF _dwBack, int _nWidth, int _nHeight, const TCHAR * _szText, const TCHAR * _szFlashVars)
{
static int bServiceExists=-1;
INSERTANISMILEY ias={0};
@@ -47,9 +54,11 @@ static BOOL InsertAnimatedSmiley(HWND _hwnd, TCHAR * _szFilename, COLORREF _dwBa
ias.hWnd=_hwnd;
ias.tcsFilename=_szFilename;
ias.dwFlags=IASF_TCHAR;
+ ias.nWidth=_nWidth;
ias.nHeight=_nHeight;
ias.dwBackColor=_dwBack;
ias.tcsText=_szText;
+ ias.tcsFlashVars=_szFlashVars;
return (BOOL) CallService(MS_INSERTANISMILEY,(WPARAM)&ias, 0);
};
#ifdef _cplusplus