blob: 2771dba2512d8d11df15eba8c28552cde36b2bb5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* ResizableDialog.h
* -----------------
* Purpose: A wrapper for resizable MFC dialogs that fixes the dialog's minimum size
* (as MFC does not scale controls properly if the user makes the dialog smaller than it originally was)
* Notes : (currently none)
* Authors: OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#pragma once
#include "openmpt/all/BuildSettings.hpp"
OPENMPT_NAMESPACE_BEGIN
class ResizableDialog : public CDialog
{
private:
CPoint m_minSize;
public:
ResizableDialog() = default;
explicit ResizableDialog(UINT nIDTemplate, CWnd *pParentWnd = nullptr);
protected:
BOOL OnInitDialog() override;
afx_msg void OnGetMinMaxInfo(MINMAXINFO *mmi);
DECLARE_MESSAGE_MAP()
};
OPENMPT_NAMESPACE_END
|