#pragma once #include "General_Draw.h" #include "EdgeInspector_App.h" #include "GridCtrl.h" #include "Global_Define.h" #include "GlassRecipe.h" #include "HardwareSettings.h" #include "Glass_Data.h" // CViewRecipeList ´ëÈ­ »óÀÚÀÔ´Ï´Ù. #define UM_SELECT_RECIPE (WM_USER + 1001) class CViewRecipeList : public CDialogEx { DECLARE_DYNAMIC(CViewRecipeList) public: CViewRecipeList(CWnd* pParent = NULL); // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù. virtual ~CViewRecipeList(); // ´ëÈ­ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù. enum { IDD = IDD_DLG_RECIPE_LIST }; protected: virtual BOOL OnInitDialog(); virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Áö¿øÀÔ´Ï´Ù. afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); afx_msg void OnBnClickedButListNewrecipe(); afx_msg void OnBnClickedButListSelect(); afx_msg void OnBnClickedButListExit(); afx_msg void OnPaint(); afx_msg void OnListRecipeClick(NMHDR *pNotifyStruct, LRESULT* pResult); afx_msg void OnListPPIDClick(NMHDR *pNotifyStruct, LRESULT* pResult); afx_msg void OnBnClickedButListNewppid(); afx_msg void OnBnClickedButListDelppid(); afx_msg void OnBnClickedButtonLink(); afx_msg void OnBnClickedButListDelrecipe();//20141006 DECLARE_MESSAGE_MAP() public: void SetRecipeName(CString strPPID,CString strRecipe); CString GetRecipeName(){return m_strRecipeName;} CString GetPPIDName(){return m_strPPIDName;} void SetLinkList(VectorLinkList *pList){m_VectorLinkList=pList;} void SetParent(CWnd *pWnd){m_pParent=pWnd;} protected: void LoadRecipeList(); void FillRecipeList(); void Init_Grid(); void Init_GridHeader(); void Init_PPIDGrid(); void Init_PPIDGridHeader(); void FillPPIDList(); void SetControl(); protected: CGridCtrl m_ListRecipe; CGridCtrl m_ListPPID; CString m_strPPIDName; CString m_strRecipeName; CString m_strSelectRecipe; CStringArray m_arrRecipeList; CStringArray m_arrCommentList; CStringArray m_arrRecipeFileList; CFontControl m_FontControl; VectorLinkList *m_VectorLinkList; CWnd *m_pParent; };