From c3f30f69f3da4e4ed018ba0307e64e327915d4ca Mon Sep 17 00:00:00 2001 From: mrDarker <mr.darker@163.com> Date: 星期二, 22 七月 2025 13:41:24 +0800 Subject: [PATCH] 1. PPID配方绑定界面优化,动态控件获取窗口画笔 --- SourceCode/Bond/Servo/PortConfigurationDlg.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/SourceCode/Bond/Servo/PortConfigurationDlg.h b/SourceCode/Bond/Servo/PortConfigurationDlg.h index dc33c95..e735153 100644 --- a/SourceCode/Bond/Servo/PortConfigurationDlg.h +++ b/SourceCode/Bond/Servo/PortConfigurationDlg.h @@ -1,6 +1,7 @@ 锘�#pragma once #include "afxdialogex.h" #include "GridCtrl.h" +#include "CLoadPort.h" // CPortConfigurationDlg 瀵硅瘽妗� @@ -20,13 +21,17 @@ protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 鏀寔 virtual BOOL OnInitDialog(); + afx_msg void OnSelchangeComboPort(); afx_msg void OnBnClickedButtonApply(); DECLARE_MESSAGE_MAP() private: int GetLoadPortEqID(const std::string& strPortName); + void LoadPortConfigToUI(SERVO::CLoadPort* pPort); void InitGrid(); - void FillGrid(); + void FillGrid(SERVO::CSlot* pSlot, SERVO::CGlass* pGlass); + + SERVO::CLoadPort* m_pPort[4]; CGridCtrl m_wndGrid; CComboBox m_comboPort; -- Gitblit v1.9.3