From 3c78e3b9659ea8903d46cdcc0d95288e65f50e0b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 5 Mar 2017 18:43:18 +0300 Subject: minor code cleaning --- plugins/TabSRMM/src/chat/window.cpp | 4 ++-- plugins/TabSRMM/src/msgdlgutils.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp index 41db67446b..098cd30dde 100644 --- a/plugins/TabSRMM/src/chat/window.cpp +++ b/plugins/TabSRMM/src/chat/window.cpp @@ -2443,7 +2443,7 @@ LABEL_SHOWWINDOW: if (si->iSplitterX > rc.right - rc.left - 35) si->iSplitterX = rc.right - rc.left - 35; g_Settings.iSplitterX = si->iSplitterX; - SendMessage(GetHwnd(), WM_SIZE, 0, 0); + SendMessage(m_hwnd, WM_SIZE, 0, 0); } else if ((HWND)lParam == GetDlgItem(m_hwnd, IDC_SPLITTERY) || lParam == -1) { GetClientRect(m_hwnd, &rc); @@ -2458,7 +2458,7 @@ LABEL_SHOWWINDOW: si->iSplitterY = rc.bottom - rc.top - DPISCALEY_S(40); g_Settings.iSplitterY = si->iSplitterY; UpdateToolbarBG(); - SendMessage(GetHwnd(), WM_SIZE, 0, 0); + SendMessage(m_hwnd, WM_SIZE, 0, 0); } else if ((HWND)lParam == GetDlgItem(m_hwnd, IDC_PANELSPLITTER)) { pt.x = 0, pt.y = wParam; diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index 65898944fe..48d7c3894b 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -217,7 +217,7 @@ void CTabBaseDlg::CalcDynamicAvatarSize(BITMAP *bminfo) return; // at this stage, the layout is not yet ready... RECT rc; - GetClientRect(GetHwnd(), &rc); + GetClientRect(m_hwnd, &rc); BOOL bBottomToolBar = m_pContainer->dwFlags & CNT_BOTTOMTOOLBAR; BOOL bToolBar = m_pContainer->dwFlags & CNT_HIDETOOLBAR ? 0 : 1; -- cgit v1.2.3