From 876ad153fd25c0605f516b0f3a6407999db69131 Mon Sep 17 00:00:00 2001
From: LAPTOP-T815PCOQ\25526 <mr.liuyang@126.com>
Date: 星期二, 17 十二月 2024 16:46:37 +0800
Subject: [PATCH] 1. 完善配方列表模块,与对称轴交互 2. 双击修改配方描述 3.配方列表控件动态变化

---
 SourceCode/Bond/BondEq/View/RecipeListDlg.h |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/BondEq/View/RecipeListDlg.h b/SourceCode/Bond/BondEq/View/RecipeListDlg.h
index 6d442e6..66ea463 100644
--- a/SourceCode/Bond/BondEq/View/RecipeListDlg.h
+++ b/SourceCode/Bond/BondEq/View/RecipeListDlg.h
@@ -1,6 +1,7 @@
 锘�#pragma once
 #include "afxdialogex.h"
 #include "GridCtrl.h"
+#include "BLLabel.h"
 
 
 // CRecipeListDlg 瀵硅瘽妗�
@@ -19,16 +20,31 @@
 #endif
 
 private:
+	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;	// 鎺т欢甯冨眬鏄犲皠
+
+	// 鎺т欢
+	CBLLabel* m_staticCurrRecipe;
 	CGridCtrl m_grid;
 
 protected:
 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 鏀寔
 	virtual BOOL OnInitDialog();
+	afx_msg void OnSize(UINT nType, int cx, int cy);
 	afx_msg void OnBnClickedButtonCreateRecipe();
 	afx_msg void OnBnClickedButtonDeleteRecipe();
+	afx_msg void OnBnClickedButtonSelectRecipe();
+	afx_msg void OnGridCellEditFinished(NMHDR* pNotifyStruct, LRESULT* pResult);
 	DECLARE_MESSAGE_MAP()
 };

--
Gitblit v1.9.3