#pragma once #include "afxwin.h" #include "CHCommonControls/GridCtrl.h" #define MOTOR_COMMON_ADDR_INFO_GRID_COL_COUNT 13 #define MOTOR_GANTRY_ADDR_INFO_GRID_COL_COUNT 20 #define MOTOR_AXIS_ADDR_INFO_GRID_COL_COUNT 15 #define MOTOR_OFFSET_AND_DIRECTION_GRID_COL_COUNT 4 #define SCHEDULER_MOTOR_PARAM_INFO_GRID_ROW_COUNT 7 #define SCHEDULER_MOTOR_PARAM_INFO_GRID_COL_COUNT 2 // CDlgMotor ´ëÈ­ »óÀÚÀÔ´Ï´Ù. class CDlgMotor : public CDialog { DECLARE_DYNAMIC(CDlgMotor) public: CDlgMotor(CWnd* pParent = NULL); // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù. virtual ~CDlgMotor(); public: void InitMotorCommonAddrInfoGridContorl(); void FillMotorCommonAddrInfo(); void InitMotorGantryAddrInfoGridContorl(); void FillMotorGantryAddrInfo(); void InitMotorAxisAddrInfoGridContorl(); void FillMotorAxisAddrInfo(); void InitMotorOffestAndDirectionGridContorl(); void FillMotorOffsetAndDirection(); void InitSchedulerMotorParamInfoGridControl(); void FillSchedulerMotorParamInfo(); void ResetSchedulerMotorParamInfoGrid(); // ´ëÈ­ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù. enum { IDD = IDD_DIALOG_SYS_SETTING_MOTOR }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Áö¿øÀÔ´Ï´Ù. DECLARE_MESSAGE_MAP() public: virtual BOOL OnInitDialog(); virtual BOOL PreTranslateMessage(MSG* pMsg); afx_msg void OnBnClickedButtonSysMotorReset(); afx_msg void OnBnClickedButtonSysMotorApply(); afx_msg void OnEnChangeEditSysMotorGantryCount(); afx_msg void OnEnChangeEditSysMotorAxisCount(); afx_msg void OnCheckedUseTheaMotor(); afx_msg void OnCheckedUseCheckMotorOffset(); CComboBox m_ctrlComboMotorOriginDirection; CComboBox m_ctrlComboMotorType; CGridCtrl m_ctrlGridSchedulerMotorParamInfo; CGridCtrl m_ctrlGridMotorCommonAddr; CGridCtrl m_ctrlGridMotorGantryAddr; CGridCtrl m_ctrlGridMotorAxisAddr; CGridCtrl m_ctrlGridMotorOffsetAndDirection; CEdit m_ctrlThetaMotorAddr; int m_nGantryCount; int m_nAxisCount; int m_nAxisMoveCount; int m_nAFMDelayTime; int m_nSnapDelayTime; int m_nWSIDelayTime; int m_nThetaMotorAddr; CString m_strMotorPort; BOOL m_bUseThetaMotor; BOOL m_bUseCheckMotorOffset; double m_dStartPosX; double m_dStartPosY; };