summaryrefslogtreecommitdiff
path: root/plugins/YAPP/src/message_pump.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/YAPP/src/message_pump.h')
-rw-r--r--plugins/YAPP/src/message_pump.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/YAPP/src/message_pump.h b/plugins/YAPP/src/message_pump.h
index 70671b157a..6acb371080 100644
--- a/plugins/YAPP/src/message_pump.h
+++ b/plugins/YAPP/src/message_pump.h
@@ -11,6 +11,31 @@ void PostMPMessage(UINT msg, WPARAM, LPARAM);
#define MUM_NMREMOVE (WM_USER + 0x014)
#define MUM_NMAVATAR (WM_USER + 0x015)
+struct PopupData
+{
+ int cbSize;
+ int flags; // OR of PDF_* flags below
+ HANDLE hContact;
+ HICON hIcon;
+ union {
+ char *pszTitle;
+ TCHAR *ptzTitle;
+ wchar_t *pwzTitle;
+ };
+ union {
+ char *pszText;
+ TCHAR *ptzText;
+ wchar_t *pwzText;
+ };
+ COLORREF colorBack; // if colorBack and colorText are equal, defaults will be used
+ COLORREF colorText;
+ WNDPROC windowProc; // optional custom window procedure
+ int timeout; // -1 == infinite, 0 == default, otherwise timeout in seconds
+ void *opaque;
+
+ void SetIcon(HICON);
+};
+
// given a popup data pointer, and a handle to an event, this function
// will post a message to the message queue which will set the hwnd value
// and then set the event...so create an event, call this function and then wait on the event