From 6a9e3738066370dac38f5f6768b8a6f61fe709e0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 28 Mar 2017 14:18:31 +0300 Subject: SRMM notifications went to the core with ME_MSG_WINDOWEVENT --- plugins/TabSRMM/src/msgs.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'plugins/TabSRMM/src/msgs.cpp') diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index a348800445..f9f02f9703 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -854,35 +854,6 @@ void TSAPI CreateImageList(BOOL bInitial) PluginConfig.g_IconTypingEvent = PluginConfig.g_buttonBarIcons[ICON_DEFAULT_TYPING]; } -int CTabBaseDlg::FireEvent(unsigned int type, unsigned int subType) -{ - if (m_hContact == 0 || m_hwnd == nullptr) - return 0; - - CSrmmWindow *dat = (CSrmmWindow*)GetWindowLongPtr(m_hwnd, GWLP_USERDATA); - if (dat == nullptr) - return 0; - - MessageWindowEventData mwe = { sizeof(mwe) }; - mwe.hContact = m_hContact; - mwe.hwndWindow = m_hwnd; - mwe.szModule = "tabSRMsgW"; - mwe.uType = type; - mwe.hwndInput = m_message.GetHwnd(); - mwe.hwndLog = m_log.GetHwnd(); - - if (type == MSG_WINDOW_EVT_CUSTOM) { - TABSRMM_SessionInfo se = { sizeof(se) }; - se.evtCode = HIWORD(subType); - se.hwnd = m_hwnd; - se.extraFlags = (unsigned int)(LOWORD(subType)); - se.local = dat->m_sendBuffer; - mwe.local = &se; - } - - return NotifyEventHooks(PluginConfig.m_event_MsgWin, 0, (LPARAM)&mwe); -} - ///////////////////////////////////////////////////////////////////////////////////////// // standard icon definitions @@ -1142,7 +1113,6 @@ static void TSAPI InitAPI() CB_InitCustomButtons(); // the event API - PluginConfig.m_event_MsgWin = CreateHookableEvent(ME_MSG_WINDOWEVENT); PluginConfig.m_event_MsgPopup = CreateHookableEvent(ME_MSG_WINDOWPOPUP); PluginConfig.m_event_WriteEvent = CreateHookableEvent(ME_MSG_PRECREATEEVENT); } -- cgit v1.2.3