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/CCjPageBase.h | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 56 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/CCjPageBase.h b/SourceCode/Bond/Servo/CCjPageBase.h
new file mode 100644
index 0000000..03688f7
--- /dev/null
+++ b/SourceCode/Bond/Servo/CCjPageBase.h
@@ -0,0 +1,56 @@
+锘�#pragma once
+#include "GroupLabel.h"
+#include <functional>
+
+
+typedef std::function<void(void* pFrom, int code, void* pContext, int contextType)> ONCONTENTCHANGED;
+
+
+// CPjPage1 瀵硅瘽妗�
+
+class CCjPageBase : public CDialogEx
+{
+ DECLARE_DYNAMIC(CCjPageBase)
+
+public:
+ CCjPageBase(UINT nID, CWnd* pPage); // 鏍囧噯鏋勯�犲嚱鏁�
+ virtual ~CCjPageBase();
+
+public:
+ void SetTitle(CString strTitle);
+ virtual int OnApply() { return 0; };
+ void SetOnContentChanged(ONCONTENTCHANGED onContentChanged);
+ void SetContext(void* pContext, int type);
+ void* GetContext();
+
+protected:
+ virtual void Resize();
+ virtual void ContentChanged(int code);
+ virtual void OnSetContext(void* pContext) { };
+
+private:
+ COLORREF m_crBkgndCached;
+ CBrush m_brBkgnd;
+ CGroupLabel m_labelTitle;
+ ONCONTENTCHANGED m_onContentChanged;
+
+protected:
+ COLORREF m_crBkgnd;
+ BOOL m_bContentChangedLock;
+ void* m_pContext;
+ int m_nContextType;
+
+// 瀵硅瘽妗嗘暟鎹�
+#ifdef AFX_DESIGN_TIME
+ enum { IDD = IDD_CJ_PAGE1 };
+#endif
+
+protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 鏀寔
+
+ DECLARE_MESSAGE_MAP()
+public:
+ virtual BOOL OnInitDialog();
+ afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
+ afx_msg void OnSize(UINT nType, int cx, int cy);
+};
--
Gitblit v1.9.3