diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-01 14:58:39 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-01 14:58:39 +0000 |
commit | 0c3d3e587e699d06352f269d887d749a8542559a (patch) | |
tree | 2ebcd55584339b04645f0bb79318f987c7efaa46 /yapp/message_pump.h | |
parent | 9a1b2f988762967da30e6f4d2575dc2dfe99a21a (diff) |
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@26 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/message_pump.h')
-rw-r--r-- | yapp/message_pump.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/yapp/message_pump.h b/yapp/message_pump.h new file mode 100644 index 0000000..e57ed55 --- /dev/null +++ b/yapp/message_pump.h @@ -0,0 +1,22 @@ +#ifndef _MESSAGE_PUMP_INC
+#define _MESSAGE_PUMP_INC
+
+extern DWORD message_pump_thread_id;
+void PostMPMessage(UINT msg, WPARAM, LPARAM);
+
+#define MUM_CREATEPOPUP (WM_USER + 0x011)
+#define MUM_DELETEPOPUP (WM_USER + 0x012)
+
+#define MUM_NMUPDATE (WM_USER + 0x013)
+#define MUM_NMREMOVE (WM_USER + 0x014)
+
+// 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
+// when the event is signalled, the hwnd will be valid
+void FindWindow(POPUPDATAW *pd, HANDLE hEvent, HWND *hwnd);
+
+void InitMessagePump();
+void DeinitMessagePump();
+
+#endif
|