From b2aa706dfea78ad2e327fb5e414207af69d23d64 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期六, 13 九月 2025 11:33:04 +0800
Subject: [PATCH] 1.对话框显示工艺参数,可复制到剪贴板; 2.修复几处因按回车或ESC键导致页面被关闭的问题; 3.修复解释警告数据文本失败的问题; 4.更新警告文本,显示警告详细信息; 5.完善警告描述内容 ;
---
SourceCode/Bond/Servo/CExpandableListCtrl.h | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/CExpandableListCtrl.h b/SourceCode/Bond/Servo/CExpandableListCtrl.h
index 3b5e4d0..faf0692 100644
--- a/SourceCode/Bond/Servo/CExpandableListCtrl.h
+++ b/SourceCode/Bond/Servo/CExpandableListCtrl.h
@@ -2,6 +2,19 @@
#include <vector>
#include <memory>
#include <unordered_map>
+#include <set>
+
+
+// ===== 自定义通知:点击需要弹出全文的单元格 =====
+#ifndef ELCN_SHOWFULLTEXT
+#define ELCN_SHOWFULLTEXT (NM_FIRST - 201)
+struct NMC_ELC_SHOWFULLTEXT {
+ NMHDR hdr; // hwndFrom / idFrom / code = ELCN_SHOWFULLTEXT
+ int iItem; // 行
+ int iSubItem; // 列(0-based)
+ CString text; // 完整文本
+};
+#endif
class CExpandableListCtrl : public CListCtrl
{
@@ -43,6 +56,15 @@
// 若为 FALSE,则选中时仍显示自定义颜色
void SetPreserveSelectionHighlight(BOOL b) { m_preserveSelHighlight = b; }
+ // 清除树
+ void ClearTree();
+
+ // 设置哪些列需要“被截断则通知父窗口显示全文”(0-based列号)
+ void SetPopupFullTextColumns(const std::vector<int>& cols);
+
+ std::set<int> m_popupCols; // 需要通知的列集合
+ bool _IsCellTruncated(int row, int col, const CString& text) const;
+
protected:
virtual void PreSubclassWindow();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
--
Gitblit v1.9.3