diff options
author | George Hazan <ghazan@miranda.im> | 2019-05-13 14:54:10 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-05-13 14:54:10 +0300 |
commit | 7a20312b1ea4998111a05f207be8023a499050fb (patch) | |
tree | 7551d409fd942d2a0c924897b1c0770d68f8950d /plugins/CrashDumper/src | |
parent | 0dd998f1a2d1ca3a3fca9bc6ea85c40ccfeae850 (diff) |
CDlgBase::SetMinSize - a way to get rid of WM_GETMINMAXINFO in DlgProc
Diffstat (limited to 'plugins/CrashDumper/src')
-rw-r--r-- | plugins/CrashDumper/src/ui.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
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) {
|