From f725c70b482df377119e2c09b36c9317f86ef494 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Apr 2013 15:52:48 +0000 Subject: ME_MSG_WRITEEVENT - new hookable event to catch the db event creation moment in SRMM git-svn-id: http://svn.miranda-ng.org/main/trunk@4484 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_message.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include/m_message.h') diff --git a/include/m_message.h b/include/m_message.h index 9c9bca2549..6d842ebc20 100644 --- a/include/m_message.h +++ b/include/m_message.h @@ -107,6 +107,21 @@ typedef struct { //returns 0 on success and returns non-zero (1) on error or if no window data exists for that hcontact #define MS_MSG_GETWINDOWDATA "MessageAPI/GetWindowData" +//wparam = 0 (unused) +//lparam = (MessageWindowEvent*) +//fired when SRMM writes an entered message into the database +#define ME_MSG_WRITEEVENT "MessageAPI/OnWriteEvent" + +typedef struct { + int cbSize; + int seq; // number returned by PSS_MESSAGE + HANDLE hContact; + HANDLE hDbEvent; // database event written on the basis of message sent +} MessageWindowEvent; + +///////////////////////////////////////////////////////////////////////////////////////// +// SRMM popup menu + // wParam = 0 // lParam = (MessageWindowPopupData *)&MessageWindowPopupData; // Fired to allow plugins to add items to the msg window popup menu @@ -131,6 +146,7 @@ typedef struct { int selection; // The menu control id or 0 if no one was selected } MessageWindowPopupData; +///////////////////////////////////////////////////////////////////////////////////////// // status icons #define MBF_DISABLED 0x01 -- cgit v1.2.3