summaryrefslogtreecommitdiff
path: root/src/core/stdmsg
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 /src/core/stdmsg
parent0dd998f1a2d1ca3a3fca9bc6ea85c40ccfeae850 (diff)
CDlgBase::SetMinSize - a way to get rid of WM_GETMINMAXINFO in DlgProc
Diffstat (limited to 'src/core/stdmsg')
-rw-r--r--src/core/stdmsg/src/tabs.cpp9
1 files changed, 1 insertions, 8 deletions
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;