You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
153 lines
4.8 KiB
C++
153 lines
4.8 KiB
C++
|
|
// MainFrm.h : CMainFrame 类的接口
|
|
//
|
|
|
|
#pragma once
|
|
#include "OutputWnd.h"
|
|
#include "Resource.h"
|
|
#include "PaneDialogTmp.h"
|
|
#include "DlgVariableString.h"
|
|
#include "DlgStdMarkCtr.h"
|
|
#include "DlgPlatformCtrl.h"
|
|
#include "PaneDevicePar.h"
|
|
#include "PaneDrawPar.h"
|
|
#include "DlgTest.h"
|
|
#include "DlgSimulateTrace.h"
|
|
#include "DlgMarkPar.h"
|
|
#include "DlgWorkTime.h"
|
|
#include "DlgObjList.h"
|
|
#include "DlgDnCutCamera.h"
|
|
#include "DlgCutDeviceCtrl.h"
|
|
#include "DlgSW_XL_Flow.h"
|
|
|
|
|
|
|
|
class CMainFrame : public CMDIFrameWndEx
|
|
{
|
|
DECLARE_DYNAMIC(CMainFrame)
|
|
public:
|
|
CMainFrame();
|
|
|
|
// 特性
|
|
public:
|
|
|
|
// 操作
|
|
public:
|
|
void ShowMouseCoord(CPoint point);
|
|
void ShowViewScale(double s);
|
|
void ResetCaptionBar();
|
|
void ResetStatusBarExtStr();
|
|
void SetStatusBarExtStr(CString str,CString val1,CString val2);
|
|
void SetCaptionCmdStr(CString str);
|
|
void SetCaptionInputStr(CString str);
|
|
void RefreashCaptionBar();
|
|
void UnBindingDlg();
|
|
void StartRecordTime();
|
|
void StopRecordTime();
|
|
// 重写
|
|
public:
|
|
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
|
virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);
|
|
|
|
// 实现
|
|
public:
|
|
virtual ~CMainFrame();
|
|
#ifdef _DEBUG
|
|
virtual void AssertValid() const;
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
#endif
|
|
|
|
public: // 控件条嵌入成员
|
|
CMFCMenuBar m_wndMenuBar;
|
|
CMFCToolBar m_wndToolBar;
|
|
CMFCStatusBar m_wndStatusBar;
|
|
CMFCToolBarImages m_UserImages;
|
|
#ifdef __CAPTION_BAR__
|
|
CMFCCaptionBar m_wndCaptionBar;//标题栏
|
|
#endif
|
|
//可停靠窗口对象-----------------------------------------
|
|
#ifdef __DLG_PANE_CMD__
|
|
COutputWnd m_OutputCmd;//命令窗口
|
|
#endif
|
|
COutputWnd m_OutputLog;//日志窗口
|
|
CPaneDrawPar m_PaneDrawPar;//绘制属性窗口
|
|
CPaneDevicePar m_PaneDevicePar;//设备属性窗口
|
|
//可停靠对话框---------------------------------------
|
|
#ifdef __DLG_PANE_STD_MARK_CTRL__
|
|
CDlgStdMarkCtr m_DlgStdMarkCtr;//标准标刻控制
|
|
CPaneDialogTmp m_StdMarkCtrlPane;//标准标刻控制
|
|
#endif
|
|
#ifdef __DLG_PANE_SIMULATE_TRACE__
|
|
DlgSimulateTrace m_DlgSimulatetrace;//数据轨迹模拟
|
|
CPaneDialogTmp m_SimulatetracePane;//数据轨迹模拟
|
|
#endif
|
|
#ifdef __DLG_PANE_VAR_STRING__
|
|
CDlgVariableString m_DlgVariableString;//可变字符属性
|
|
CPaneDialogTmp m_PaneValString;//可变字符属性
|
|
#endif
|
|
#ifdef __DLG_PANE_PLATFORM__
|
|
DlgPlatformCtrl m_DlgPlatformCtrl;//平台控制
|
|
CPaneDialogTmp m_PanePlatformCtrl;//平台控制
|
|
#endif
|
|
#ifdef __DLG_PANE_TEST__
|
|
CDlgTest m_DlgTest;//调试窗口
|
|
CPaneDialogTmp m_PaneTest;//调试窗口
|
|
#endif
|
|
#ifdef __DLG_PANE_MARK_PAR__
|
|
CDlgMarkPar m_CDlgMarkPar;//标刻参数
|
|
CPaneDialogTmp m_MarkParPane;//标刻参数
|
|
#endif
|
|
#ifdef __DLG_PANE_WORK_TIME__
|
|
CDlgWorkTime m_DlgWorkTime;//工作时间
|
|
CPaneDialogTmp m_WorkTimePane;//工作时间
|
|
#endif
|
|
#ifdef __DLG_PANE_OBJ_LIST__
|
|
CDlgObjList m_DlgObjList;//对象列表
|
|
CPaneDialogTmp m_ObjListPane;//对象列表
|
|
#endif
|
|
|
|
|
|
DlgHawkvisCamera m_DlgHawkvisCamera;
|
|
CPaneDialogTmp m_PaneHawkvisCamera;
|
|
|
|
//DlgCutDeviceCtrl m_DlgCutDeviceCtrl;
|
|
//CPaneDialogTmp m_PaneCutDeviceCtrl;
|
|
|
|
|
|
CDlgSW_XL_Flow m_DlgSW_XL_Flow;
|
|
CPaneDialogTmp m_PaneSW_XL_Flow;
|
|
//-----------------------------------------------------
|
|
|
|
// 生成的消息映射函数
|
|
protected:
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
afx_msg void OnWindowManager();
|
|
afx_msg void OnViewCustomize();
|
|
afx_msg LRESULT OnToolbarCreateNew(WPARAM wp, LPARAM lp);
|
|
afx_msg void OnApplicationLook(UINT id);
|
|
afx_msg void OnUpdateApplicationLook(CCmdUI* pCmdUI);
|
|
afx_msg void OnViewCaptionBar();
|
|
afx_msg void OnUpdateViewCaptionBar(CCmdUI* pCmdUI);
|
|
afx_msg void OnOptions();
|
|
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
BOOL CreateDockingWindows();
|
|
BOOL CreateCaptionBar();
|
|
private:
|
|
CString m_CaptionCmdStr;//标题栏命令名称字符串
|
|
CString m_CaptionInputStr;//输入的字符串
|
|
CString m_StatusBarExtStr;//状态栏额外信息
|
|
public:
|
|
afx_msg void OnOpenFile();
|
|
afx_msg void OnExportDevicePar();
|
|
afx_msg void OnUserMgr();
|
|
afx_msg void OnSaveFileAs();
|
|
afx_msg void OnSaveFileAs2();
|
|
afx_msg void OnSaveFile();
|
|
afx_msg void OnDevicePar();
|
|
};
|
|
|
|
|