From 5c3ab50ab27ba9a517cf56d0626c641883e3fd39 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 4 Apr 2017 00:20:24 +0300 Subject: SRMM window list completely incapsulated into mir_app to avoid corrupting it by someone's dirty hands --- include/m_chat_int.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/m_chat_int.h b/include/m_chat_int.h index 425e0c6573..13acfeb308 100644 --- a/include/m_chat_int.h +++ b/include/m_chat_int.h @@ -340,7 +340,6 @@ struct CHAT_MANAGER FONTINFO aFonts[OPTIONS_FONTCOUNT]; LIST &arSessions; char **pLogIconBmpBits; - MWindowList hWindowList; // user-defined custom callbacks void (*OnCreateModule)(MODULEINFO*); @@ -384,6 +383,12 @@ EXTERN_C MIR_APP_DLL(DWORD) CALLBACK Srmm_LogStreamCallback(DWORD_PTR dwCookie, // receives char** as the first parameter EXTERN_C MIR_APP_DLL(DWORD) CALLBACK Srmm_MessageStreamCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb); +// sends a message to all SRMM windows +EXTERN_C MIR_APP_DLL(void) Srmm_Broadcast(UINT, WPARAM, LPARAM); + +// finds a SRMM window using hContact +EXTERN_C MIR_APP_DLL(HWND) Srmm_FindWindow(MCONTACT hContact); + // updates options for all windows EXTERN_C MIR_APP_DLL(void) Chat_UpdateOptions(); -- cgit v1.2.3