From 2d737d50469b965c2787823a94757f4c9f0a7107 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 9 Mar 2017 17:28:47 +0300 Subject: chat API: - SESSION_INFO now addresses an instance of CChatRoomDlg instead of HWND; - linked list of sessions replaced with the usual LIST<>; - saveCI removed everywhere --- plugins/TabSRMM/src/hotkeyhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/TabSRMM/src/hotkeyhandler.cpp') diff --git a/plugins/TabSRMM/src/hotkeyhandler.cpp b/plugins/TabSRMM/src/hotkeyhandler.cpp index 202e6e7423..2291e50711 100644 --- a/plugins/TabSRMM/src/hotkeyhandler.cpp +++ b/plugins/TabSRMM/src/hotkeyhandler.cpp @@ -110,11 +110,11 @@ void TSAPI HandleMenuEntryFromhContact(MCONTACT hContact) SESSION_INFO *si = SM_FindSessionByHCONTACT(hContact); if (si != nullptr) { // session does exist, but no window is open for it - if (si->hWnd) { + if (si->pDlg) { TContainerData *pContainer = 0; - SendMessage(si->hWnd, DM_QUERYCONTAINER, 0, (LPARAM)&pContainer); + SendMessage(si->pDlg->GetHwnd(), DM_QUERYCONTAINER, 0, (LPARAM)&pContainer); if (pContainer) { - ActivateExistingTab(pContainer, si->hWnd); + ActivateExistingTab(pContainer, si->pDlg->GetHwnd()); if (GetForegroundWindow() != pContainer->hwnd) SetForegroundWindow(pContainer->hwnd); SetFocus(GetDlgItem(pContainer->hwndActive, IDC_MESSAGE)); @@ -199,7 +199,7 @@ LONG_PTR CALLBACK HotkeyHandlerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP if (hWnd == nullptr) { SESSION_INFO *si = SM_FindSessionByHCONTACT((MCONTACT)dis->itemID); - hWnd = si ? si->hWnd : 0; + hWnd = si ? si->pDlg->GetHwnd() : nullptr; } CSrmmWindow *dat = 0; -- cgit v1.2.3