From 0222ece90a4caa554b1dd09aa37b95ad394bf893 Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期五, 26 十二月 2025 15:53:51 +0800
Subject: [PATCH] 1.显示生产数据和tt
---
SourceCode/Bond/Servo/HmLabel.h | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/HmLabel.h b/SourceCode/Bond/Servo/HmLabel.h
new file mode 100644
index 0000000..d7623e1
--- /dev/null
+++ b/SourceCode/Bond/Servo/HmLabel.h
@@ -0,0 +1,33 @@
+#pragma once
+class CHmLabel : public CStatic
+{
+public:
+ CHmLabel();
+ ~CHmLabel();
+
+public:
+ void setText(CString strText);
+ void setNote1(CString strNote1);
+ void setFontSize(int size);
+ void setNoteFontSize(int size);
+ void setBackground(COLORREF color, BOOL bInvalidate = FALSE);
+ void setForeground(COLORREF color, BOOL bInvalidate = FALSE);
+ void setNoteTextColor(COLORREF color, BOOL bInvalidate = FALSE);
+
+private:
+ COLORREF m_crFrame;
+ COLORREF m_crBackground;
+ COLORREF m_crForeground;
+ COLORREF m_crNote;
+ HFONT m_hFont;
+ HFONT m_hFontNote;
+
+private:
+ CString m_strNote1;
+
+public:
+ DECLARE_MESSAGE_MAP()
+ afx_msg void OnPaint();
+ afx_msg void OnNcPaint();
+};
+
--
Gitblit v1.9.3