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 /protocols/JabberG/src/jabber_privacy.cpp | |
parent | 0dd998f1a2d1ca3a3fca9bc6ea85c40ccfeae850 (diff) |
CDlgBase::SetMinSize - a way to get rid of WM_GETMINMAXINFO in DlgProc
Diffstat (limited to 'protocols/JabberG/src/jabber_privacy.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_privacy.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/protocols/JabberG/src/jabber_privacy.cpp b/protocols/JabberG/src/jabber_privacy.cpp index 14508b7c92..5ffedcbbd1 100644 --- a/protocols/JabberG/src/jabber_privacy.cpp +++ b/protocols/JabberG/src/jabber_privacy.cpp @@ -1288,6 +1288,8 @@ public: m_clcClist(this, IDC_CLIST),
m_edtNewJid(this, IDC_NEWJID)
{
+ SetMinSize(550, 390);
+
m_btnSimple.OnClick = Callback(this, &CJabberDlgPrivacyLists::btnSimple_OnClick);
m_btnAdvanced.OnClick = Callback(this, &CJabberDlgPrivacyLists::btnAdvanced_OnClick);
m_btnAddJid.OnClick = Callback(this, &CJabberDlgPrivacyLists::btnAddJid_OnClick);
@@ -1499,7 +1501,6 @@ public: UI_MESSAGE_MAP(CJabberDlgPrivacyLists, CSuper);
UI_MESSAGE(WM_MEASUREITEM, OnWmMeasureItem);
UI_MESSAGE(WM_DRAWITEM, OnWmDrawItem);
- UI_MESSAGE(WM_GETMINMAXINFO, OnWmGetMinMaxInfo);
UI_MESSAGE_MAP_END();
BOOL OnWmMeasureItem(UINT, WPARAM, LPARAM lParam)
@@ -1572,14 +1573,6 @@ public: return TRUE;
}
- BOOL OnWmGetMinMaxInfo(UINT, WPARAM, LPARAM lParam)
- {
- LPMINMAXINFO lpmmi = (LPMINMAXINFO)lParam;
- lpmmi->ptMinTrackSize.x = 550;
- lpmmi->ptMinTrackSize.y = 390;
- return 0;
- }
-
void btnSimple_OnClick(CCtrlButton*)
{
CheckDlgButton(m_hwnd, IDC_BTN_SIMPLE, BST_CHECKED);
|