From ee1c66a755596133985d743038cf4bb484e3dabc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 8 Mar 2017 10:05:32 +0300 Subject: fix for resizer --- plugins/Scriver/src/chat/window.cpp | 3 +-- plugins/Scriver/src/msgdialog.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Scriver') diff --git a/plugins/Scriver/src/chat/window.cpp b/plugins/Scriver/src/chat/window.cpp index 54de76822b..518e818200 100644 --- a/plugins/Scriver/src/chat/window.cpp +++ b/plugins/Scriver/src/chat/window.cpp @@ -1350,8 +1350,7 @@ INT_PTR CChatRoomDlg::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) if (IsIconic(m_hwnd)) break; if (wParam == SIZE_RESTORED || wParam == SIZE_MAXIMIZED) { - GetClientRect(m_pParent->hwndTabs, &rc); - TabCtrl_AdjustRect(m_pParent->hwndTabs, false, &rc); + GetClientRect(m_hwnd, &rc); MessageDialogResize(rc.right - rc.left, rc.bottom - rc.top); } break; diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index e62ceba616..20349589f0 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -1388,8 +1388,7 @@ INT_PTR CSrmmWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) case WM_SIZE: if (wParam == SIZE_RESTORED || wParam == SIZE_MAXIMIZED) { RECT rc; - GetClientRect(m_pParent->hwndTabs, &rc); - TabCtrl_AdjustRect(m_pParent->hwndTabs, false, &rc); + GetClientRect(m_hwnd, &rc); MessageDialogResize(rc.right - rc.left, rc.bottom - rc.top); } return TRUE; -- cgit v1.2.3