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/GroupLabel.h |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/GroupLabel.h b/SourceCode/Bond/Servo/GroupLabel.h
new file mode 100644
index 0000000..ba259f6
--- /dev/null
+++ b/SourceCode/Bond/Servo/GroupLabel.h
@@ -0,0 +1,46 @@
+#pragma once
+
+#define PADDING_LEFT		0
+#define PADDING_TOP			1
+#define PADDING_RIGHT		2
+#define PADDING_BOTTOM		3
+
+#define TEXT_ALIGN_LEFT		0
+#define TEXT_ALIGN_CENTER	1
+#define TEXT_ALIGN_RIGHT	3
+
+#define ID_MSG_RESIZEY		WM_USER+123
+
+class CGroupLabel : public CStatic
+{
+public:
+	CGroupLabel();
+	~CGroupLabel();
+
+
+public:
+	void SetBkgndColor(COLORREF color);
+	void SetTextColor(COLORREF color);
+	void SetLineColor(COLORREF color);
+	void Setpadding(int type, unsigned int nPadding);
+	void SetTextAlignMode(int nAlign);
+	void EnableResize();
+	void DisableResize();
+
+private:
+	COLORREF	m_crBkgnd;
+	unsigned int m_nPadding[4];
+	COLORREF	m_crLine;
+	COLORREF	m_crText;
+	int			m_nTextAlign;
+
+private:
+	BOOL m_bEnableResize;
+
+	DECLARE_MESSAGE_MAP()
+	afx_msg void OnPaint();
+public:
+	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
+	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
+};
+

--
Gitblit v1.9.3