| | |
| | | #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) |
| | | |
| | |
| | | #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; |