-
Notifications
You must be signed in to change notification settings - Fork 206
/
DialogResizer.h
54 lines (41 loc) · 1.02 KB
/
DialogResizer.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// DialogResizer.h: interface for the CDialogResizer class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DIALOGRESIZER_H__DA9AF3FF_C6CC_4D70_965A_4216A0EC9E75__INCLUDED_)
#define AFX_DIALOGRESIZER_H__DA9AF3FF_C6CC_4D70_965A_4216A0EC9E75__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxtempl.h>
#define DR_MoveLeft 1
#define DR_MoveTop 2
#define DR_SizeWidth 4
#define DR_SizeHeight 8
class CDialogResizer
{
public:
CDialogResizer();
virtual ~CDialogResizer();
protected:
class CDR_Data
{
public:
CDR_Data()
{
m_nFlags = 0;
}
HWND m_hWnd;
int m_nFlags;
};
public:
void MoveControls(CSize csNewSize);
void AddControl(int nControlID, int nFlags);
void AddControl(HWND hWnd, int nFlags);
void SetParent(HWND hWndParent);
protected:
CArray< CDR_Data, CDR_Data > m_Controls;
CSize m_DlgSize;
HWND m_hWndParent;
protected:
};
#endif // !defined(AFX_DIALOGRESIZER_H__DA9AF3FF_C6CC_4D70_965A_4216A0EC9E75__INCLUDED_)