| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- /**************************************************************************************************
- 版本所有(C), 2020-2022, 北京普达迪泰
- ***************************************************************************************************
- 文 件 名: MainFrm.h
- 功能描述: 程序主框架
- 版 本 号: 1.00初版
- 作 者: HYF
- 生成日期; 2021-12-20
- 最近修改:
- 函数列表:
- 修改历史:
- 1.日 期 :2021-12-20
- 作 者 : HYF
- 修改内容 : 创建文件
- **************************************************************************************************/
- #pragma once
- class CMainFrame : public CFrameWnd
- {
-
- protected: // 仅从序列化创建
- CMainFrame() noexcept;
- DECLARE_DYNCREATE(CMainFrame)
- // 特性
- public:
- // 操作
- public:
- // 重写
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- // 实现
- public:
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected: // 控件条嵌入成员
- CStatusBar m_wndStatusBar;
- // 生成的消息映射函数
- protected:
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- DECLARE_MESSAGE_MAP()
- public:
- // 进行视图切换的代码函数
- void SwitchToForm(int nForm, DWORD taskId);
- afx_msg void OnEquipmentView();
- afx_msg void OnReportView();
- afx_msg void OnStartView();
- afx_msg void OnHelp();
- virtual void OnUpdateFrameTitle(BOOL bAddToTitle);
- afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI);
- int m_CurViewId;
- protected:
- afx_msg LRESULT OnStartStaticTask(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnStartDynamicTask(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnBackToStart(WPARAM wParam, LPARAM lParam);
- public:
- virtual void ActivateFrame(int nCmdShow = -1);
- void OnUpdateStatusTime(CCmdUI *pCmdUI);
- afx_msg void OnDestroy();
- afx_msg void OnTimer(UINT_PTR nIDEvent);
- };
|