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 --- plugins/Import/src/wizard.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'plugins/Import') diff --git a/plugins/Import/src/wizard.cpp b/plugins/Import/src/wizard.cpp index 6efdeeb125..5ca204bd72 100644 --- a/plugins/Import/src/wizard.cpp +++ b/plugins/Import/src/wizard.cpp @@ -115,6 +115,7 @@ public: CDlgBase(g_plugin, IDD_WIZARD), m_pFirstPage(pPage) { + SetMinSize(330, 286); m_autoClose = CLOSE_ON_CANCEL; } @@ -221,14 +222,6 @@ public: SetDlgItemText(m_hwnd, IDCANCEL, (wchar_t*)lParam); break; - case WM_GETMINMAXINFO: - { - LPMINMAXINFO lpMMI = (LPMINMAXINFO)lParam; - lpMMI->ptMinTrackSize.x = 330; - lpMMI->ptMinTrackSize.y = 286; - } - return 1; - case WM_COMMAND: SendMessage(hwndPage, WM_COMMAND, wParam, lParam); break; -- cgit v1.2.3