提交 | 用户 | age
|
0ed438
|
1 |
|
Q |
2 |
// MainFrm.h: CMainFrame 类的接口
|
|
3 |
//
|
|
4 |
|
|
5 |
#pragma once
|
|
6 |
#include "FileView.h"
|
|
7 |
#include "ClassView.h"
|
|
8 |
#include "OutputWnd.h"
|
|
9 |
#include "PropertiesWnd.h"
|
|
10 |
|
|
11 |
class CMainFrame : public CMDIFrameWndEx
|
|
12 |
{
|
|
13 |
DECLARE_DYNAMIC(CMainFrame)
|
|
14 |
public:
|
|
15 |
CMainFrame() noexcept;
|
|
16 |
|
|
17 |
// 特性
|
|
18 |
public:
|
|
19 |
|
|
20 |
// 操作
|
|
21 |
public:
|
|
22 |
|
|
23 |
// 重写
|
|
24 |
public:
|
|
25 |
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
|
26 |
virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = nullptr, CCreateContext* pContext = nullptr);
|
|
27 |
|
|
28 |
// 实现
|
|
29 |
public:
|
|
30 |
virtual ~CMainFrame();
|
|
31 |
#ifdef _DEBUG
|
|
32 |
virtual void AssertValid() const;
|
|
33 |
virtual void Dump(CDumpContext& dc) const;
|
|
34 |
#endif
|
|
35 |
|
|
36 |
protected: // 控件条嵌入成员
|
|
37 |
CMFCMenuBar m_wndMenuBar;
|
|
38 |
CMFCToolBar m_wndToolBar;
|
|
39 |
CMFCStatusBar m_wndStatusBar;
|
|
40 |
CMFCToolBarImages m_UserImages;
|
|
41 |
CFileView m_wndFileView;
|
|
42 |
CClassView m_wndClassView;
|
|
43 |
COutputWnd m_wndOutput;
|
|
44 |
CPropertiesWnd m_wndProperties;
|
|
45 |
|
|
46 |
// 生成的消息映射函数
|
|
47 |
protected:
|
|
48 |
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
49 |
afx_msg void OnWindowManager();
|
|
50 |
afx_msg void OnViewCustomize();
|
|
51 |
afx_msg LRESULT OnToolbarCreateNew(WPARAM wp, LPARAM lp);
|
|
52 |
afx_msg void OnApplicationLook(UINT id);
|
|
53 |
afx_msg void OnUpdateApplicationLook(CCmdUI* pCmdUI);
|
|
54 |
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
|
|
55 |
DECLARE_MESSAGE_MAP()
|
|
56 |
|
|
57 |
BOOL CreateDockingWindows();
|
|
58 |
void SetDockingWindowIcons(BOOL bHiColorIcons);
|
|
59 |
};
|
|
60 |
|
|
61 |
|