diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-02 23:08:10 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-02 23:08:21 +0300 |
commit | 060edd0d612ff8be1dd43284fd5469e6e47e93c6 (patch) | |
tree | 5842b7dc1703b7e3b4460b778049152b34e7f1e5 /src/core/stdmsg | |
parent | 403de4add1193c54e6b4387485fd8eab0c3c00bb (diff) |
more optimal tab control resizer
Diffstat (limited to 'src/core/stdmsg')
-rw-r--r-- | src/core/stdmsg/src/tabs.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/core/stdmsg/src/tabs.cpp b/src/core/stdmsg/src/tabs.cpp index 1686fa546e..11bc1d1e39 100644 --- a/src/core/stdmsg/src/tabs.cpp +++ b/src/core/stdmsg/src/tabs.cpp @@ -59,17 +59,9 @@ struct CTabbedWindow : public CDlgBase virtual int Resizer(UTILRESIZECONTROL *urc) { - if (urc->wId == IDC_TAB) { - if (m_tab.GetActivePage()) { - RECT rc; - GetClientRect(m_tab.GetHwnd(), &rc); - TabCtrl_AdjustRect(m_tab.GetHwnd(), FALSE, &rc); - - for (int i = m_tab.GetCount() - 1; i >= 0; i--) - SetWindowPos(m_tab.GetNthPage(i)->GetHwnd(), NULL, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, SWP_NOZORDER | SWP_NOACTIVATE); - } + if (urc->wId == IDC_TAB) return RD_ANCHORX_WIDTH | RD_ANCHORY_HEIGHT; - } + return RD_ANCHORX_LEFT | RD_ANCHORY_TOP; } |