-
Notifications
You must be signed in to change notification settings - Fork 0
/
CFrame.h
119 lines (82 loc) · 2.62 KB
/
CFrame.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*
* CFrame.h
*
* Created on: 02 îêò. 2013 ã.
* Author: karpachevnk
*/
#ifndef CFRAME_H_
#define CFRAME_H_
#include <iostream>
#include <windows.h>
#include <commctrl.h>
#include <string>
#include <list>
#include "CBaseFrame.h"
using namespace std;
namespace AppFrameNameSpace
{
class CFrame : public CBaseFrame
{
public:
CFrame(HINSTANCE hinst,UINT cstyle,HICON hicon,HICON hiconsm,HCURSOR hcursor,HBRUSH hbr,
LPCTSTR clname,DWORD fstyle,DWORD fstyleex,LPCTSTR ftext,CBaseFrame *pparent,int,int,int,int);
CFrame(HINSTANCE hinst,LPCTSTR clname,DWORD fstyle,DWORD fstyleex,LPCTSTR ftext,CBaseFrame *pparent,
int,int,int,int);
CFrame(const CBaseFrame &src);
protected:
virtual LRESULT OnFrameEvent(UINT msg, WPARAM wp, LPARAM lp);
private:
};
class CControlFrame : public CBaseFrame
{
public:
CControlFrame(HINSTANCE hinst,LPCTSTR clname,DWORD fstyle,DWORD fstyleex,LPCTSTR ftext,CBaseFrame *pparent,
int x,int y,int cx,int cy);
protected:
virtual LRESULT OnFrameEvent(UINT msg, WPARAM wp, LPARAM lp);
};
class CButton : public CControlFrame
{
public:
CButton(HINSTANCE hinst,CBaseFrame *pparent,LPCTSTR btext);
CButton(HINSTANCE hinst,CBaseFrame *pparent,LPCTSTR btext,int x,int y,int cx,int cy);
protected:
private:
};
class CStateButton : public CControlFrame
{
public:
CStateButton(HINSTANCE hinst,CBaseFrame *pparent,LPCTSTR btext);
CStateButton(HINSTANCE hinst,CBaseFrame *pparent,LPCTSTR btext,int x,int y,int cx,int cy);
};
class CGroupBox : public CControlFrame
{
public:
CGroupBox(HINSTANCE hinst,CBaseFrame *pparent,LPCTSTR gbtext);
CGroupBox(HINSTANCE hinst,CBaseFrame *pparent,LPCTSTR gbtext,int x,int y,int cx,int cy);
};
class CTreeView : public CControlFrame
{
public:
CTreeView(HINSTANCE hinst,CBaseFrame *pparent,LPCTSTR gbtext,int x,int y,int cx,int cy);
};
class CDialogFrame : public CBaseFrame
{
public:
CDialogFrame(HINSTANCE hinst,UINT cstyle,HICON hicon,HICON hiconsm,HCURSOR hcursor,HBRUSH hbr,
LPCTSTR clname,DWORD fstyle,DWORD fstyleex,LPCTSTR ftext,CBaseFrame *pparent,int,int,int,int);
~CDialogFrame();
BOOL AddButton(LPCTSTR btext,int x,int y,int cx,int cy);
BOOL AddStateButton(LPCTSTR btext,int x,int y,int cx,int cy);
BOOL AddGroupBox(LPCTSTR gbtext,int x,int y,int cx,int cy);
BOOL AddTreeView(LPCTSTR ttext, int x,int y,int cx,int cy);
protected:
virtual LRESULT OnFrameEvent(UINT msg, WPARAM wp, LPARAM lp);
virtual void OnButtonPush(CControlFrame * pbutton);
BOOL AddControlFrame(CControlFrame * pframe);
void DeleteControlFrame(CControlFrame * pframe);
private:
list< CControlFrame* > m_ChildList;
};
} /* namespace AppFrameNameSpace */
#endif /* CFRAME_H_ */