From 7a20312b1ea4998111a05f207be8023a499050fb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 May 2019 14:54:10 +0300 Subject: CDlgBase::SetMinSize - a way to get rid of WM_GETMINMAXINFO in DlgProc --- src/core/stdmsg/src/tabs.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/core/stdmsg') diff --git a/src/core/stdmsg/src/tabs.cpp b/src/core/stdmsg/src/tabs.cpp index a5f12c1c1b..3641d583a1 100644 --- a/src/core/stdmsg/src/tabs.cpp +++ b/src/core/stdmsg/src/tabs.cpp @@ -142,6 +142,7 @@ CTabbedWindow::CTabbedWindow() : CDlgBase(g_plugin, IDD_CONTAINER), m_tab(this, IDC_TAB) { + SetMinSize(450, 350); } bool CTabbedWindow::OnInitDialog() @@ -523,14 +524,6 @@ INT_PTR CTabbedWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) } break; - case WM_GETMINMAXINFO: - { - MINMAXINFO *mmi = (MINMAXINFO*)lParam; - mmi->ptMinTrackSize.x = 450; - mmi->ptMinTrackSize.y = 350; - } - return 0; - case WM_DRAWITEM: { LPDRAWITEMSTRUCT dis = (LPDRAWITEMSTRUCT)lParam; -- cgit v1.2.3