mrDarker
2025-04-01 1bc4fecb9cc1641ed3ad0a2fda30766fc06fb13e
SourceCode/Bond/Servo/CEquipmentPage2.h
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
#pragma once
#include "CHMPropertyPage.h"
#include "CEquipment.h"
#include "ListCtrlEx.h"
// CEpuipmentPage2 å¯¹è¯æ¡†
class CEquipmentPage2 : public CHMPropertyPage
{
   DECLARE_DYNAMIC(CEquipmentPage2)
public:
   CEquipmentPage2(CWnd* pParent = nullptr);   // æ ‡å‡†æž„造函数
   virtual ~CEquipmentPage2();
   virtual void OnApply();
   void setEquipment(SERVO::CEquipment* pEquipment);
private:
   int GetSelectedItemIndex();
private:
   SERVO::CEquipment* m_pEquipment;
   CListCtrlEx m_listCtrl;
// å¯¹è¯æ¡†æ•°æ®
#ifdef AFX_DESIGN_TIME
   enum { IDD = IDD_PAGE_EQUIPMENT2 };
#endif
protected:
   virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV æ”¯æŒ
   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);
   afx_msg void OnLvnItemchangedList1(NMHDR* pNMHDR, LRESULT* pResult);
   afx_msg void OnBnClickedButtonRemove();
};