From 47873187548840ecfe712bd227a2c792277d5f21 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 2 Mar 2017 19:32:46 +0300 Subject: further tabSRMM cleanup - duplicated functionality moved to CTabBaseDlg::DlgProc; - groupchat specific divider options removed, global ones are used instead; - more UI classes for CChatRoomDlg; - code cleaning --- plugins/TabSRMM/src/chat/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/TabSRMM/src/chat/main.cpp') diff --git a/plugins/TabSRMM/src/chat/main.cpp b/plugins/TabSRMM/src/chat/main.cpp index f34f5d18ad..ae1d259b6d 100644 --- a/plugins/TabSRMM/src/chat/main.cpp +++ b/plugins/TabSRMM/src/chat/main.cpp @@ -55,8 +55,8 @@ static void OnReplaceSession(SESSION_INFO *si) static void OnSetTopic(SESSION_INFO *si) { - if (si->hWnd) - SendMessage(si->hWnd, DM_INVALIDATEPANEL, 0, 0); + if (si->hWnd && si->dat->m_pPanel) + si->dat->m_pPanel->Invalidate(true); } static void OnNewUser(SESSION_INFO *si, USERINFO*) @@ -102,8 +102,6 @@ static void OnLoadSettings() g_Settings.bColorizeNicks = M.GetBool(CHAT_MODULE, "ColorizeNicks", true); g_Settings.bColorizeNicksInLog = M.GetBool(CHAT_MODULE, "ColorizeNicksInLog", true); g_Settings.bScaleIcons = M.GetBool(CHAT_MODULE, "ScaleIcons", true); - g_Settings.bUseDividers = M.GetBool(CHAT_MODULE, "UseDividers", true); - g_Settings.bDividersUsePopupConfig = M.GetBool(CHAT_MODULE, "DividersUsePopupConfig", true); g_Settings.bDoubleClick4Privat = M.GetBool(CHAT_MODULE, "DoubleClick4Privat", false); g_Settings.bShowContactStatus = M.GetBool(CHAT_MODULE, "ShowContactStatus", true); -- cgit v1.2.3