TCLToolsDlg.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // TCLToolsDlg.h : 头文件
  2. //
  3. #pragma once
  4. #include "afxwin.h"
  5. // CTCLToolsDlg 对话框
  6. class CTCLToolsDlg : public CDialog
  7. {
  8. // 构造
  9. public:
  10. CTCLToolsDlg(CWnd* pParent = NULL); // 标准构造函数
  11. // 对话框数据
  12. enum { IDD = IDD_TCLTOOLS_DIALOG };
  13. protected:
  14. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  15. // 实现
  16. protected:
  17. HICON m_hIcon;
  18. // 生成的消息映射函数
  19. virtual BOOL OnInitDialog();
  20. afx_msg void OnPaint();
  21. afx_msg HCURSOR OnQueryDragIcon();
  22. afx_msg BOOL OnDeviceChange(UINT nEventType, DWORD_PTR dwData);
  23. DECLARE_MESSAGE_MAP()
  24. public:
  25. std::vector<std::string> m_vtPorts;
  26. void InitSerialCombobox();
  27. void InitCommandCombobox();
  28. CComboBox m_cbSerial;
  29. afx_msg void OnBnClickedOpenPort();
  30. CComboBox m_cbCommands;
  31. bool IsCommandExist(CommandParam &cmd, std::vector<CommandParam> &vtCMDParams);
  32. afx_msg void OnBnClickedExecCmd();
  33. void ClearEdit();
  34. afx_msg void OnBnClickedOpenFile();
  35. protected:
  36. virtual void OnOK();
  37. virtual void OnCancel();
  38. };