diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-05 18:43:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-05 18:43:31 +0300 |
commit | 3c78e3b9659ea8903d46cdcc0d95288e65f50e0b (patch) | |
tree | aa979e40325b713c8c89369ef41b0e3bfc4673b6 /plugins/TabSRMM | |
parent | 65cd7e169459a539122219425006cda70c28761d (diff) |
minor code cleaning
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/chat/window.cpp | 4 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
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;
|