mrDarker
2025-06-06 2f0684bf01209b9ddfdc53da44fb85f4db6db326
SourceCode/Bond/Servo/CEquipmentPage1.h
@@ -1,9 +1,17 @@
#pragma once
#include "CHMPropertyPage.h"
#include "CEquipment.h"
#include "JobSlotGrid.h"
// CEquipmentPage1 对话框
struct SignalInfo
{
   CString strName;       // 信号名称
   bool bCurrentState;    // 当前状态(ON/OFF)
   bool bClickable;       // 是否允许点击
};
class CEquipmentPage1 : public CHMPropertyPage
{
@@ -17,6 +25,11 @@
private:
   SERVO::CEquipment* m_pEquipment;
   std::vector<SignalInfo> m_vSignalList;
   CJobSlotGrid m_ctrlSignalPanel;
   void InitSignalList();
   void LoadDeviceSignals();
// 对话框数据
@@ -30,4 +43,7 @@
   DECLARE_MESSAGE_MAP()
public:
   virtual BOOL OnInitDialog();
   afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
   afx_msg void OnDestroy();
   afx_msg void OnSize(UINT nType, int cx, int cy);
};