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/CrashDumper/src/ui.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'plugins/CrashDumper/src') diff --git a/plugins/CrashDumper/src/ui.cpp b/plugins/CrashDumper/src/ui.cpp index 50c7dd944c..cde5a7bf2f 100644 --- a/plugins/CrashDumper/src/ui.cpp +++ b/plugins/CrashDumper/src/ui.cpp @@ -33,6 +33,8 @@ public: m_btnCopyFile(this, IDC_FILEVER), m_redtViewVersionInfo(this, IDC_VIEWVERSIONINFO) { + SetMinSize(400, 300); + m_flags = flags; m_forceResizable = true; @@ -76,18 +78,6 @@ public: return true; } - INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) override - { - if (msg == WM_GETMINMAXINFO) { - LPMINMAXINFO mmi = (LPMINMAXINFO)lParam; - mmi->ptMinTrackSize.x = 400; // The minimum width in points - mmi->ptMinTrackSize.y = 300; // The minimum height in points - return 0; - } - - return CDlgBase::DlgProc(msg, wParam, lParam); - } - int Resizer(UTILRESIZECONTROL * urc) override { switch (urc->wId) { -- cgit v1.2.3