From abf4069c2e3473da8f1d468e46c19951935a912f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 14 Mar 2017 12:19:39 +0300 Subject: fixes #744 --- plugins/TabSRMM/src/container.cpp | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'plugins/TabSRMM/src/container.cpp') diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index 5fe3659af7..c4614cd6ec 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -98,19 +98,11 @@ void TSAPI SetAeroMargins(TContainerData *pContainer) if (!dat) return; - RECT rcWnd; - if (!dat->isChat()) { - if (dat->m_pPanel.isActive()) - GetWindowRect(GetDlgItem(dat->GetHwnd(), IDC_LOG), &rcWnd); - else - GetWindowRect(dat->GetHwnd(), &rcWnd); - } - else { - if (dat->m_pPanel.isActive()) - GetWindowRect(GetDlgItem(dat->GetHwnd(), IDC_LOG), &rcWnd); - else - GetWindowRect(dat->GetHwnd(), &rcWnd); - } + RECT rcWnd; + if (dat->m_pPanel.isActive()) + GetWindowRect(GetDlgItem(dat->GetHwnd(), IDC_LOG), &rcWnd); + else + GetWindowRect(dat->GetHwnd(), &rcWnd); POINT pt = { rcWnd.left, rcWnd.top }; ScreenToClient(pContainer->hwnd, &pt); -- cgit v1.2.3