From d84ddeea533a8e5f122cc4a2fed06e93c2aacf3d Mon Sep 17 00:00:00 2001 From: LAPTOP-T815PCOQ\25526 <mr.liuyang@126.com> Date: 星期四, 21 十一月 2024 18:30:02 +0800 Subject: [PATCH] 1.显示对话框继续缩放 2.登录界面加载图片 --- SourceCode/Bond/BondEq/View/SystemLogManagerDlg.h | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/SourceCode/Bond/BondEq/View/SystemLogManagerDlg.h b/SourceCode/Bond/BondEq/View/SystemLogManagerDlg.h index d4acd4c..9cd5ea5 100644 --- a/SourceCode/Bond/BondEq/View/SystemLogManagerDlg.h +++ b/SourceCode/Bond/BondEq/View/SystemLogManagerDlg.h @@ -20,9 +20,10 @@ private: void InitSystemLogManager(); void FillSystemLogManager(); + CFont* GetOrCreateFont(int nFontSize); void UpdatePageInfo(); void SetDefaultFont(); - void AdjustControls(int nWidth, int nHeight); + void AdjustControls(float dScaleX, float dScaleY); void AdjustControlFont(CWnd* pWnd, int nWidth, int nHeight); void AdjustComboBoxStyle(CComboBox& comboBox); void AdjustDateTimeCtrlStyle(CDateTimeCtrl& dateTimeCtrl); @@ -32,7 +33,8 @@ int m_nInitialHeight; // 鍒濆楂樺害 int m_nCurrentPage; // 褰撳墠椤电爜 int m_nTotalPages; // 鎬婚〉鏁� - std::map<int, CFont*> m_mapFonts; // 绠$悊瀛椾綋鐨勫鍣紝閿负瀛椾綋澶у皬 + std::map<int, CRect> m_mapCtrlLayouts; // 瀛樺偍鎺т欢鐨勫垵濮嬪竷灞�淇℃伅 + std::map<int, CFont*> m_mapFonts; // 绠$悊瀛椾綋鐨勫鍣紝閿负瀛椾綋澶у皬 private: CComboBox m_comboType; @@ -50,6 +52,7 @@ 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(); -- Gitblit v1.9.3