From e8a27bb203fe2aff70390a5eca002d7438da9b0f Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期三, 22 十月 2025 14:24:34 +0800
Subject: [PATCH] Merge branch 'clh' into liuyang

---
 SourceCode/Bond/Servo/ClientListDlg.h |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/ClientListDlg.h b/SourceCode/Bond/Servo/ClientListDlg.h
new file mode 100644
index 0000000..106ede1
--- /dev/null
+++ b/SourceCode/Bond/Servo/ClientListDlg.h
@@ -0,0 +1,47 @@
+锘�#pragma once
+#include "afxwin.h"
+#include <vector>
+#include <string>
+
+// 瀹㈡埛绔俊鎭粨鏋�
+struct ClientInfo {
+	std::string ip;
+	uint16_t port;
+	bool versionOk;
+	std::string status;
+	std::string connectTime;
+};
+
+// CClientListDlg 瀵硅瘽妗�
+
+class CClientListDlg : public CDialogEx
+{
+	DECLARE_DYNAMIC(CClientListDlg)
+
+public:
+	CClientListDlg(CWnd* pParent = nullptr);   // 鏍囧噯鏋勯�犲嚱鏁�
+	virtual ~CClientListDlg();
+
+// 瀵硅瘽妗嗘暟鎹�
+#ifdef AFX_DESIGN_TIME
+	enum { IDD = IDD_DIALOG_CLIENT_LIST };
+#endif
+
+protected:
+	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 鏀寔
+
+	DECLARE_MESSAGE_MAP()
+
+public:
+	virtual BOOL OnInitDialog();
+	afx_msg void OnBnClickedRefresh();
+	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
+
+private:
+	void RefreshClientList();
+	void UpdateClientList(const std::vector<ClientInfo>& clients);
+
+private:
+	CListCtrl m_listClients;
+	std::vector<ClientInfo> m_clients;
+};

--
Gitblit v1.9.3