From b8a705515cd307bd46e04eeccc0bf0e158133402 Mon Sep 17 00:00:00 2001
From: LAPTOP-T815PCOQ\25526 <mr.liuyang@126.com>
Date: 星期三, 18 十二月 2024 16:27:37 +0800
Subject: [PATCH] 1. 提取对话框动态变化控件大小的函数(新建对话框基类)

---
 SourceCode/Bond/BondEq/View/RecipeListDlg.h |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/SourceCode/Bond/BondEq/View/RecipeListDlg.h b/SourceCode/Bond/BondEq/View/RecipeListDlg.h
index 66ea463..2dafd08 100644
--- a/SourceCode/Bond/BondEq/View/RecipeListDlg.h
+++ b/SourceCode/Bond/BondEq/View/RecipeListDlg.h
@@ -1,12 +1,13 @@
 锘�#pragma once
 #include "afxdialogex.h"
 #include "GridCtrl.h"
+#include "CBaseDlg.h"
 #include "BLLabel.h"
 
 
 // CRecipeListDlg 瀵硅瘽妗�
 
-class CRecipeListDlg : public CDialogEx
+class CRecipeListDlg : public CBaseDlg
 {
 	DECLARE_DYNAMIC(CRecipeListDlg)
 
@@ -20,19 +21,19 @@
 #endif
 
 private:
-	CFont* GetOrCreateFont(int nFontSize);
-	void AdjustControls(float dScaleX, float dScaleY);
-	void AdjustControlFont(CWnd* pWnd, int nWidth, int nHeight);
+	//CFont* GetOrCreateFont(int nFontSize);
+	//void AdjustControls(float dScaleX, float dScaleY);
+	//void AdjustControlFont(CWnd* pWnd, int nWidth, int nHeight);
 	void AdjustLabelFont(CBLLabel& label);
 	void InitRecipeLise();
 	void FillRecipeLise();
 	void UpdateDataFile(const CString& strRecipeName, const CString& strNewDescription);
 
 private:
-	int m_nInitialWidth;
-	int m_nInitialHeight;
-	std::map<int, CFont*> m_mapFonts;		// 瀛椾綋鏄犲皠
-	std::map<int, CRect> m_mapCtrlLayouts;	// 鎺т欢甯冨眬鏄犲皠
+	//int m_nInitialWidth;
+	//int m_nInitialHeight;
+	//std::map<int, CFont*> m_mapFonts;		// 瀛椾綋鏄犲皠
+	//std::map<int, CRect> m_mapCtrlLayouts;	// 鎺т欢甯冨眬鏄犲皠
 
 	// 鎺т欢
 	CBLLabel* m_staticCurrRecipe;

--
Gitblit v1.9.3