From 5a927fe5cd015bf00bc992220c0d4f8b802ca044 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 03 十二月 2024 09:37:21 +0800
Subject: [PATCH] 1.PLC页增加两按钮,将原测试代码移到此处

---
 SourceCode/Bond/BLControlsSDK/include/BLLabel.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/BLControlsSDK/include/BLLabel.h b/SourceCode/Bond/BLControlsSDK/include/BLLabel.h
index 45bc4de..e8f35f8 100644
--- a/SourceCode/Bond/BLControlsSDK/include/BLLabel.h
+++ b/SourceCode/Bond/BLControlsSDK/include/BLLabel.h
@@ -5,6 +5,8 @@
 #pragma once
 #endif // _MSC_VER >= 1000
 
+#include <functional> 
+
 /////////////////////////////////////////////////////////////////////////////
 // CBLLabel window
 enum FlashType { None, Text, Background };
@@ -18,6 +20,8 @@
     // 鏋勯�犱笌鏋愭瀯
     CBLLabel();
     virtual ~CBLLabel();
+
+    void SetClickCallback(std::function<void()> callback); // 璁剧疆鐐瑰嚮浜嬩欢鐨勫洖璋冨嚱鏁�
 
     // 灞炴�ц缃帴鍙�
     CBLLabel& SetBkColor(COLORREF crBkgnd);             // 璁剧疆鑳屾櫙棰滆壊
@@ -55,6 +59,7 @@
     TextAlign m_alignment;        // 鏂囨湰瀵归綈鏂瑰紡
     FlashType m_Type;             // 闂儊绫诲瀷
     HCURSOR  m_hCursor;           // 瓒呴摼鎺ュ厜鏍�
+    std::function<void()> m_clickCallback; // 鐐瑰嚮浜嬩欢鐨勫洖璋冨嚱鏁�
 
 protected:
     // MFC 娑堟伅鏄犲皠

--
Gitblit v1.9.3