From ae93aa98b214f98a0e28df1bdaa8df18b3f6da02 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 2 Mar 2017 14:12:59 +0300 Subject: further SRMM window unification - CSrmmBaseDialog received m_hContact as its common member; - less usage of CTabBaseDlg::m_bType in tabSRMM --- plugins/TabSRMM/src/msgs.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'plugins/TabSRMM/src/msgs.h') diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h index 26648a98ad..ef7d394969 100644 --- a/plugins/TabSRMM/src/msgs.h +++ b/plugins/TabSRMM/src/msgs.h @@ -135,6 +135,7 @@ class CMenuBar; class CInfoPanel; class CSideBar; class CProxyWindow; +class CThumbBase; struct CContactCache; @@ -274,7 +275,6 @@ public: BYTE m_bType; DWORD m_dwFlags; DWORD m_dwFlagsEx; - MCONTACT m_hContact; char *m_szProto; wchar_t m_wszMyNickname[130]; wchar_t m_wszStatusBar[100]; @@ -375,6 +375,9 @@ public: public: CTabBaseDlg(TNewWindowData*, int); + virtual CThumbBase* CreateThumb(CProxyWindow*) const = 0; + virtual void ClearLog() = 0; + HWND DM_CreateClist(); void DM_EventAdded(WPARAM wParam, LPARAM lParam); void DM_InitRichEdit(); @@ -408,7 +411,6 @@ public: void AdjustBottomAvatarDisplay(); void CalcDynamicAvatarSize(BITMAP *bminfo); void CheckStatusIconClick(POINT pt, const RECT &rc, int gap, int code); - void ClearLog(); BOOL DoRtfToTags(CMStringW &pszText, int iNumColors, COLORREF *pColors) const; void DrawStatusIcons(HDC hDC, const RECT &rc, int gap); void EnableSendButton(bool bMode) const; @@ -445,6 +447,9 @@ public: class CSrmmWindow : public CTabBaseDlg, public MZeroedObject { + virtual CThumbBase* CreateThumb(CProxyWindow *pProxy) const override; + virtual void ClearLog() override; + void DM_OptionsApplied(WPARAM wParam, LPARAM lParam); void MsgWindowUpdateState(UINT msg); @@ -468,6 +473,9 @@ class CChatRoomDlg : public CTabBaseDlg, public MZeroedObject { bool m_bWasDeleted; + virtual CThumbBase* CreateThumb(CProxyWindow *pProxy) const override; + virtual void ClearLog() override; + public: CChatRoomDlg(TNewWindowData*); -- cgit v1.2.3