提交 | 用户 | age
|
61deef
|
1 |
|
Q |
2 |
// ChildFrm.h: CChildFrame 类的接口
|
|
3 |
//
|
|
4 |
|
|
5 |
#pragma once
|
|
6 |
#include "../MyLib/StaticEx.h"
|
|
7 |
class CMyChildFrame : public CMDIChildWndEx
|
|
8 |
{
|
|
9 |
DECLARE_DYNCREATE(CMyChildFrame)
|
|
10 |
public:
|
|
11 |
CMyChildFrame() noexcept;
|
|
12 |
|
|
13 |
// 特性
|
|
14 |
protected:
|
|
15 |
CSplitterWndEx m_wndSplitter;
|
|
16 |
CMFCStatusBar m_wndStatusBar;
|
|
17 |
CMFCToolBar m_wndToolBar_InfoShow;
|
|
18 |
CStaticEx m_StaticShowMachine;
|
|
19 |
CStaticEx m_StaticShowProgPos;
|
|
20 |
CStaticEx m_StaticShowOnline;
|
|
21 |
CStaticEx m_StaticShowPLC;
|
|
22 |
CStaticEx m_StaticShowMonitor;
|
|
23 |
CStaticEx m_StaticShowAddress;
|
|
24 |
|
|
25 |
public:
|
|
26 |
CMFCStatusBar *GetStatusBar()
|
|
27 |
{
|
|
28 |
return &m_wndStatusBar;
|
|
29 |
}
|
|
30 |
// 操作
|
|
31 |
public:
|
|
32 |
|
|
33 |
// 重写
|
|
34 |
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
|
35 |
|
|
36 |
// 实现
|
|
37 |
public:
|
|
38 |
virtual ~CMyChildFrame();
|
|
39 |
#ifdef _DEBUG
|
|
40 |
virtual void AssertValid() const;
|
|
41 |
virtual void Dump(CDumpContext& dc) const;
|
|
42 |
#endif
|
|
43 |
|
|
44 |
// 生成的消息映射函数
|
|
45 |
protected:
|
|
46 |
DECLARE_MESSAGE_MAP()
|
|
47 |
public:
|
|
48 |
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
49 |
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
|
|
50 |
};
|