From aedb3b85fed48cb2cf0abb5fafa8e7591644c9f4 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 02 十二月 2024 08:53:06 +0800
Subject: [PATCH] Merge branch 'liuyang' into clh
---
SourceCode/Bond/BondEq/View/SystemLogManagerDlg.h | 61 ++++++++++++++++++++++++++++++
1 files changed, 61 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/BondEq/View/SystemLogManagerDlg.h b/SourceCode/Bond/BondEq/View/SystemLogManagerDlg.h
new file mode 100644
index 0000000..9cd5ea5
--- /dev/null
+++ b/SourceCode/Bond/BondEq/View/SystemLogManagerDlg.h
@@ -0,0 +1,61 @@
+锘�#pragma once
+#include "afxdialogex.h"
+#include "GridCtrl.h"
+
+// CSystemLogManagerDlg 瀵硅瘽妗�
+
+class CSystemLogManagerDlg : public CDialogEx
+{
+ DECLARE_DYNAMIC(CSystemLogManagerDlg)
+
+public:
+ CSystemLogManagerDlg(CWnd* pParent = nullptr); // 鏍囧噯鏋勯�犲嚱鏁�
+ virtual ~CSystemLogManagerDlg();
+
+// 瀵硅瘽妗嗘暟鎹�
+#ifdef AFX_DESIGN_TIME
+ enum { IDD = IDD_DIALOG_SYSTEM_LOG_MANAGER };
+#endif
+
+private:
+ void InitSystemLogManager();
+ void FillSystemLogManager();
+ CFont* GetOrCreateFont(int nFontSize);
+ void UpdatePageInfo();
+ void SetDefaultFont();
+ void AdjustControls(float dScaleX, float dScaleY);
+ void AdjustControlFont(CWnd* pWnd, int nWidth, int nHeight);
+ void AdjustComboBoxStyle(CComboBox& comboBox);
+ void AdjustDateTimeCtrlStyle(CDateTimeCtrl& dateTimeCtrl);
+
+private:
+ int m_nInitialWidth; // 鍒濆瀹藉害
+ int m_nInitialHeight; // 鍒濆楂樺害
+ int m_nCurrentPage; // 褰撳墠椤电爜
+ int m_nTotalPages; // 鎬婚〉鏁�
+ std::map<int, CRect> m_mapCtrlLayouts; // 瀛樺偍鎺т欢鐨勫垵濮嬪竷灞�淇℃伅
+ std::map<int, CFont*> m_mapFonts; // 绠$悊瀛椾綋鐨勫鍣紝閿负瀛椾綋澶у皬
+
+private:
+ CComboBox m_comboType;
+ CComboBox m_comboUser;
+ CDateTimeCtrl m_dateTimeStart;
+ CDateTimeCtrl m_dateTimeEnd;
+ CEdit m_editDescription;
+ CGridCtrl m_listLogs;
+ CStatic m_staticPageNum;
+
+protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 鏀寔
+
+ DECLARE_MESSAGE_MAP()
+public:
+ virtual BOOL OnInitDialog();
+ afx_msg void OnSize(UINT nType, int cx, int cy);
+ afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI);
+ afx_msg void OnBnClickedButtonSearch();
+ afx_msg void OnBnClickedButtonPrevPage();
+ afx_msg void OnBnClickedButtonNextPage();
+ afx_msg void OnSelchangeComboType();
+ afx_msg void OnSelchangeComboUser();
+};
--
Gitblit v1.9.3