提交 | 用户 | age
|
0ed438
|
1 |
|
Q |
2 |
// MainFrm.h: CMainFrame 类的接口
|
|
3 |
//
|
|
4 |
|
|
5 |
#pragma once
|
418cb3
|
6 |
#include "NavView.h"
|
Q |
7 |
#include "MyPaneLog.h"
|
|
8 |
|
|
9 |
//class CMyPaneLog;
|
|
10 |
#include "MyDialogLog.h"
|
|
11 |
#include "../MyLib/StaticEx.h"
|
|
12 |
#include "CMyFuncKeyToolBar.h"
|
|
13 |
#include "MyDlgBarFuncKey.h"
|
|
14 |
#include "MyDialogLog.h"
|
|
15 |
#include "MyDlgBarInputShow.h"
|
df0321
|
16 |
#include "CMyPaneInputShow.h"
|
61deef
|
17 |
#include "MTerm1CommDevView.h"
|
Q |
18 |
#include "ConfigToolView.h"
|
0ed438
|
19 |
|
Q |
20 |
class CMainFrame : public CMDIFrameWndEx
|
|
21 |
{
|
|
22 |
DECLARE_DYNAMIC(CMainFrame)
|
|
23 |
public:
|
|
24 |
CMainFrame() noexcept;
|
|
25 |
|
|
26 |
// 特性
|
|
27 |
public:
|
|
28 |
|
|
29 |
// 操作
|
|
30 |
public:
|
|
31 |
|
|
32 |
// 重写
|
|
33 |
public:
|
|
34 |
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
418cb3
|
35 |
CMFCStatusBar m_wndStatusBar;
|
0ed438
|
36 |
// 实现
|
Q |
37 |
public:
|
|
38 |
virtual ~CMainFrame();
|
|
39 |
#ifdef _DEBUG
|
|
40 |
virtual void AssertValid() const;
|
|
41 |
virtual void Dump(CDumpContext& dc) const;
|
|
42 |
#endif
|
|
43 |
|
|
44 |
protected: // 控件条嵌入成员
|
418cb3
|
45 |
CMFCToolBar m_wndToolBar;
|
Q |
46 |
|
df0321
|
47 |
// CMyFuncKeyToolBar m_wndToolBar_Func_Key;
|
418cb3
|
48 |
// CMyDlgBarFuncKey m_wndDlgBar_Func_Key;
|
Q |
49 |
// CToolBar m_wndTBar_Edit_Key;
|
|
50 |
// CToolBar m_wndTBar_Num_Key;
|
|
51 |
// CToolBar m_wndTBar_InputShow;
|
|
52 |
// CMyDlgBarInputShow m_wndDlgBar_InputShow;
|
|
53 |
|
df0321
|
54 |
// CToolBar m_wndToolBar_Comments;
|
418cb3
|
55 |
|
Q |
56 |
CNavView m_wndNavView;
|
|
57 |
|
df0321
|
58 |
// CEdit m_InputShowEdit;
|
Q |
59 |
// CStaticEx m_InputShowStatic;
|
418cb3
|
60 |
|
df0321
|
61 |
|
418cb3
|
62 |
CMyPaneLog m_wndMyPaneLog;
|
Q |
63 |
// CMyDialogLog m_dlgMyLog;
|
df0321
|
64 |
|
Q |
65 |
|
|
66 |
CMyPaneInputShow m_wndMyPaneInputShow;
|
61deef
|
67 |
CMTerm1CommDevView* m_pCommDevView = nullptr;
|
Q |
68 |
CConfigToolView* m_pConfigToolView = nullptr;
|
0ed438
|
69 |
|
Q |
70 |
// 生成的消息映射函数
|
|
71 |
protected:
|
|
72 |
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
73 |
DECLARE_MESSAGE_MAP()
|
|
74 |
|
418cb3
|
75 |
public:
|
Q |
76 |
afx_msg void OnUploadFromPlc();
|
|
77 |
afx_msg void OnViewFunckeyBar();
|
|
78 |
afx_msg void OnUpdateViewFunckeyBar(CCmdUI *pCmdUI);
|
|
79 |
afx_msg void OnViewInputBar();
|
|
80 |
afx_msg void OnUpdateViewInputBar(CCmdUI *pCmdUI);
|
|
81 |
afx_msg void OnViewNumkeyBar();
|
|
82 |
afx_msg void OnUpdateViewNumkeyBar(CCmdUI *pCmdUI);
|
|
83 |
afx_msg void OnViewInputsegBar();
|
|
84 |
afx_msg void OnUpdateViewInputsegBar(CCmdUI *pCmdUI);
|
|
85 |
afx_msg void OnViewCommentsBar();
|
|
86 |
afx_msg void OnUpdateViewCommentsBar(CCmdUI *pCmdUI);
|
|
87 |
// afx_msg void OnMenuViewLds();
|
|
88 |
// afx_msg void OnMenuViewBld();
|
|
89 |
// afx_msg void OnMenuViewBnl();
|
df0321
|
90 |
|
Q |
91 |
int SetDisplayInfo(int Info);
|
|
92 |
|
|
93 |
CMyFormInputShow* GetInputWnd() {
|
|
94 |
return m_wndMyPaneInputShow.m_pMyFormInputShow;
|
|
95 |
};
|
|
96 |
|
|
97 |
int SetCellInfo(int info);
|
418cb3
|
98 |
int GetInputInfo(int inputInfo);
|
df0321
|
99 |
int GetInputCell(tagInputCell inputCell);
|
Q |
100 |
|
418cb3
|
101 |
afx_msg void OnMenuShowLog();
|
Q |
102 |
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
|
df0321
|
103 |
|
418cb3
|
104 |
afx_msg void OnMenuShowDev();
|
Q |
105 |
|
df0321
|
106 |
afx_msg void OnMenuShownav();
|
61deef
|
107 |
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
Q |
108 |
afx_msg void OnCommtest();
|
|
109 |
afx_msg void OnDeviceConfig();
|
|
110 |
|
|
111 |
|
0ed438
|
112 |
};
|
Q |
113 |
|
|
114 |
|
418cb3
|
115 |
|