summaryrefslogtreecommitdiff
path: root/plugins/Import/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-05-13 14:54:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-05-13 14:54:10 +0300
commit7a20312b1ea4998111a05f207be8023a499050fb (patch)
tree7551d409fd942d2a0c924897b1c0770d68f8950d /plugins/Import/src
parent0dd998f1a2d1ca3a3fca9bc6ea85c40ccfeae850 (diff)
CDlgBase::SetMinSize - a way to get rid of WM_GETMINMAXINFO in DlgProc
Diffstat (limited to 'plugins/Import/src')
-rw-r--r--plugins/Import/src/wizard.cpp9
1 files changed, 1 insertions, 8 deletions
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;