#pragma once #include "afxdialogex.h" #include "PageRobotCmd.h" // CRobotCmdContainerDlg 对话框 class CRobotCmdContainerDlg : public CDialogEx { DECLARE_DYNAMIC(CRobotCmdContainerDlg) public: CRobotCmdContainerDlg(CWnd* pParent = nullptr); // 标准构造函数 virtual ~CRobotCmdContainerDlg(); std::vector& GetResultCmds(); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_DIALOG_ROBOT_CMD_CONTAINER }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 virtual BOOL OnInitDialog(); virtual void OnOK() override; afx_msg void OnCheckEnable1(); afx_msg void OnCheckEnable2(); afx_msg void OnCheckEnable3(); afx_msg void OnCheckEnable4(); DECLARE_MESSAGE_MAP() private: void ToggleEnable(int index); CButton m_chkEnable[4]; CStatic m_placeHolder[4]; CPageRobotCmd m_pageRobotCmd[4]; std::vector m_cmdResult; };