diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-14 12:19:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-14 12:19:39 +0300 |
commit | abf4069c2e3473da8f1d468e46c19951935a912f (patch) | |
tree | 2043f9159bf5f9ae9bd71ae7285c38f8ec1b4fd5 /plugins/TabSRMM/src/container.cpp | |
parent | 28664fa2341425bd0ece0ee457b0fa0982226a3a (diff) |
fixes #744
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 18 |
1 files changed, 5 insertions, 13 deletions
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);
|