diff options
author | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-04-21 14:14:52 +0000 |
---|---|---|
committer | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-04-21 14:14:52 +0000 |
commit | cb4a46e7fbe62d788e66ed6121c717a2d22a4d7c (patch) | |
tree | 30df260fdc5a1b5a7049c2f8cac8b7ef17513d6d /popup/include_API/m_ticker.h | |
parent | 19b6f534d2e784a1e120bf52c4aa07004798f473 (diff) |
svn.miranda.im is moving to a new home!
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@7 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'popup/include_API/m_ticker.h')
-rw-r--r-- | popup/include_API/m_ticker.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/popup/include_API/m_ticker.h b/popup/include_API/m_ticker.h new file mode 100644 index 0000000..ff4d8a7 --- /dev/null +++ b/popup/include_API/m_ticker.h @@ -0,0 +1,50 @@ +#ifndef M_TICKER_H
+#define M_TICKER_H
+
+
+/* TICKER_ADD_STRING
+wParam = (WPARAM)(*TICKERDATA)TickerDataAddress (see below)
+lParam = 0... not used..
+returns (int)TickerID on success or 0 if it fails
+*/
+#define TICKER_ADD_STRING "Ticker/AddString"
+
+/* TICKER_ADD_SIMPLESTRING
+wParam = (char*) szMessage // the text to display
+lParam = (char*) szTooltip // the Items tooltip (can be NULL)
+this service function will use default values for the rest of the TICKERDATA values
+returns (int)TickerID on success or 0 if it fails
+*/
+#define TICKER_ADD_SIMPLESTRING "Ticker/AddSimpleString"
+
+/* TICKER_ADD_FROMPOPUPPLUGIN
+This should only be called from the popup plugin before (or after.. makes no difference)
+the popup is created and the user wants to display the ticker
+wParam = (WPARAM)(*POPUPDATA)PopUpDataAddress
+lParam = 0
+returns (int)TickerID on success or 0 if it fails
+*/
+#define TICKER_ADD_FROMPOPUPPLUGIN "Ticker/AddFromPopupPlugin"
+
+
+typedef struct {
+ char* szMessage; // the message you want to display, will be copied to another mem address by me, so u can free your copy
+ char* szTooltip; // a message to display in the items tooltip, can be NULL will be copied to another mem address by me, so u can free your copy
+ COLORREF crForeground; // the foreground colour.. can be NULL
+ COLORREF crBackground; // the background colour.. can be NULL
+ WNDPROC PluginWindowProc; // for the window proc.. can be NULL -->- these are more for popup compatability but someone might find it usefull
+ HANDLE hContact; // can be NULL -/
+ void * PluginData; // other plugins might want this... -/
+} TICKERDATA, *LPTICKERDATA;
+
+
+
+
+
+
+
+
+
+
+
+#endif
|