From cb4a46e7fbe62d788e66ed6121c717a2d22a4d7c Mon Sep 17 00:00:00 2001 From: watcherhd Date: Thu, 21 Apr 2011 14:14:52 +0000 Subject: 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 --- icqj_mod/m_popupw.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 icqj_mod/m_popupw.h (limited to 'icqj_mod/m_popupw.h') diff --git a/icqj_mod/m_popupw.h b/icqj_mod/m_popupw.h new file mode 100644 index 0000000..c0cac41 --- /dev/null +++ b/icqj_mod/m_popupw.h @@ -0,0 +1,56 @@ +/* +=============================================================================== + PopUp plugin +Plugin Name: PopUp +Plugin authors: Luca Santarelli aka hrk (hrk@users.sourceforge.net) + Victor Pavlychko aka zazoo (nullbie@gmail.com) +=============================================================================== +The purpose of this plugin is to give developers a common "platform/interface" +to show PopUps. It is born from the source code of NewStatusNotify, another +plugin I've made. + +Remember that users *must* have this plugin enabled, or they won't get any +popup. Write this in the requirements, do whatever you wish ;-)... but tell +them! +=============================================================================== +*/ +#ifndef M_POPUPW_H +#define M_POPUPW_H + +#ifndef MAX_CONTACTNAME + #define MAX_CONTACTNAME 2048 +#endif + +#ifndef MAX_SECONDLINE + #define MAX_SECONDLINE 2048 +#endif + +// Unicode Popup Info +typedef struct { + HANDLE lchContact; + HICON lchIcon; + WCHAR lpwzContactName[MAX_CONTACTNAME]; + WCHAR lpwzText[MAX_SECONDLINE]; + COLORREF colorBack; + COLORREF colorText; + WNDPROC PluginWindowProc; + void * PluginData; + int iSeconds; //Custom delay time in seconds. -1 means "forever", 0 means "default time". + char cZero[16]; //some unused bytes which may come useful in the future. +} POPUPDATAW, *LPPOPUPDATAW; + +// Create Popup +#define MS_POPUP_ADDPOPUPW "PopUp/AddPopUpW" + +static int __inline PUAddPopUpW(POPUPDATAW* ppdp) { + return CallService(MS_POPUP_ADDPOPUPW, (WPARAM)ppdp,0); +} + +// Change Text +#define MS_POPUP_CHANGETEXTW "PopUp/ChangetextW" + +static int __inline PUChangeTextW(HWND hWndPopUp, LPCWSTR lpwzNewText) { + return (int)CallService(MS_POPUP_CHANGETEXTW, (WPARAM)hWndPopUp, (LPARAM)lpwzNewText); +} + +#endif -- cgit v1.2.3