diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-08 20:40:49 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-08 20:40:49 +0200 |
commit | 52835e63a37566c110f43dabc0759dbf19a9bf0e (patch) | |
tree | ac0b01c3a9a1abaaa9845424f488282df29cbb90 /src | |
parent | ffd841c04a68cf6c40bbb53a18673f97a07021cb (diff) |
fixes #1337 (StdMsg: resizer is broken if tabbed interface is off)
Diffstat (limited to 'src')
-rw-r--r-- | src/core/stdmsg/src/stdafx.h | 1 | ||||
-rw-r--r-- | src/core/stdmsg/src/tabs.cpp | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/core/stdmsg/src/stdafx.h b/src/core/stdmsg/src/stdafx.h index 5d890b97c3..28f6e257fd 100644 --- a/src/core/stdmsg/src/stdafx.h +++ b/src/core/stdmsg/src/stdafx.h @@ -150,7 +150,6 @@ class CTabbedWindow : public CDlgBase int iX = 0, iY = 0;
int iWidth = 0, iHeight = 0;
int m_windowWasCascaded = 0;
- bool m_bSizingLoop = false;
public:
CCtrlPages m_tab;
diff --git a/src/core/stdmsg/src/tabs.cpp b/src/core/stdmsg/src/tabs.cpp index 7afb64175f..c244f0dd24 100644 --- a/src/core/stdmsg/src/tabs.cpp +++ b/src/core/stdmsg/src/tabs.cpp @@ -545,7 +545,6 @@ INT_PTR CTabbedWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) GetClientRect(m_hwnd, &rc); oldSizeX = rc.right - rc.left; oldSizeY = rc.bottom - rc.top; - m_bSizingLoop = true; break; case WM_EXITSIZEMOVE: @@ -557,7 +556,6 @@ INT_PTR CTabbedWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) pDlg->Resize(); } } - m_bSizingLoop = false; break; case WM_GETMINMAXINFO: @@ -685,7 +683,7 @@ INT_PTR CTabbedWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) LRESULT res = CDlgBase::DlgProc(msg, wParam, lParam); if (msg == WM_SIZE) { SendMessage(m_hwndStatus, WM_SIZE, 0, 0); - if (m_pEmbed && !m_bSizingLoop) { + if (m_pEmbed) { GetClientRect(m_tab.GetHwnd(), &rc); MoveWindow(m_pEmbed->GetHwnd(), 0, 0, rc.right - rc.left, rc.bottom - rc.top, FALSE); } |