#pragma once #include "Collimator.BasicMoulds.hpp" namespace nsCOLL = DIOS::Dev::Detail::Collimator; // CCollimatorDlg 对话框 //namespace DIOS::Dev::Detail::Collimator //{ class CCollimatorDlg : public CDiosBasicDlg { DECLARE_DYNAMIC(CCollimatorDlg) public: CCollimatorDlg(CWnd* pParent = nullptr); // 标准构造函数 ~CCollimatorDlg(); void SetMagMap() override; //设置消息对照表 void InitPageElements(bool act) override; void ShowPageElements(bool init = FALSE, bool exit = FALSE, bool cfg = FALSE, bool general = FALSE); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_DIALOG3 }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 bool AppInitial(bool act); //初始化模块 bool GetInitData(); //获取设备初始值 // 生成的消息映射函数 virtual BOOL OnInitDialog(); //类属性 _DeviceMape::iterator m_CurrentDev; //Collimator int m_nXsize { 0 }; int m_nYsize { 0 }; int m_nSID{ 0 }; int m_nAngle{ 0 }; int m_nFilter{ 0 }; bool m_bLight{ false }; bool m_bAI{ false }; int m_nMode{ 0 }; public: //遮光器显示 CEdit m_Edit_XSize; CEdit m_Edit_YSize; CEdit m_Edit_SID; CEdit m_Edit_Angle; CEdit m_Edit_Filter; CEdit m_Edit_Mode; //统一修改接口 void SetSize(int Xvalue, int Yvalue); //按钮 afx_msg void OnBnClickedButton3();//选择配置 afx_msg void OnBnClickedButton1();//初始化 afx_msg void OnBnClickedButton2();//退出 afx_msg void OnBnClickedCancel(); afx_msg void OnBnClickedButton4();//XSize afx_msg void OnBnClickedButton5();//YSize afx_msg void OnBnClickedButton6();//SID afx_msg void OnBnClickedButton7();//Angle afx_msg void OnBnClickedButton8();//Filter afx_msg void OnBnClickedButton9();//Mode afx_msg void OnBnClickedButton10();//Light? afx_msg void OnBnClickedButton11();//AI Video //文本框 afx_msg void OnEnKillfocusEdit1();//XSize_Value afx_msg void OnEnKillfocusEdit2();//YSize_Value afx_msg void OnEnKillfocusEdit3();//SID_Value afx_msg void OnEnKillfocusEdit4();//Angle_Value afx_msg void OnEnKillfocusEdit5();//Filter_Value afx_msg void OnEnKillfocusEdit6();//Mode_Value DECLARE_MESSAGE_MAP() //特殊处理 void CreateCareRaySmartSys(); }; //}