#pragma once #include "MyDlgView.h" #include "GlobalDefine.h" #include "RecipeMgr.h" //double 类型控件参数 class CDoubleParItem { public: CDoubleParItem() { }; public: int m_NameItemID;//名字控件ID int m_ValItemID;//数值控件ID }; class CDlgChildRecipe : public CMyDlgView { DECLARE_DYNAMIC(CDlgChildRecipe) public: CDlgChildRecipe(CWnd* pParent = NULL); // 标准构造函数 virtual ~CDlgChildRecipe(); virtual void UpdateLanguageTxt(); virtual void ChangeItemState(); virtual void SetTextCtrlItemID(); void InitDialogItem(); // 对话框数据 enum { IDD = IDD_CHILD_RECIPE }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 virtual BOOL OnInitDialog(); void OnTimer(UINT nIDEvent); void OnDrawEditRecipeList( NMHDR* pNMHDR, LRESULT* pResult ); void OnDrawEditRecipeInfoList( NMHDR* pNMHDR, LRESULT* pResult ); DECLARE_MESSAGE_MAP() private: void UpdateRecipeParInfo(); void InitParIDVec(); void UpdateAreaIdxCombo(); bool SaveCurSelRecipe(); void ResetEditRecipeItem(); void HideEditRecipeParItem(); private: CString m_CurSelRecipeName; vector m_DoubleParItemVec;//double 数值控件容器 CComboBox m_NewRecipeGroupComb;//组选择下拉列表 CListCtrl m_GroupRecipeList;//Group recipe list CListCtrl m_EditRecipeList;//Edit recipe list CListCtrl m_EditRecipeInfoList;//用于显示计算参数的list CListCtrl m_EditSubRecipeList;//Edit Sub recipe list CComboBox m_EditRecipeParComb; double m_EditRecipeParVal; CString m_EditRecipeParName; CEdit m_DoubleParEdit;//用于编辑double的编辑框 CComboBox m_SelScanAreaComb; CComboBox m_SelScanAreaIdxComb; CComboBox m_SelBoolValComb; CComboBox m_SelOffsetTableComb; int m_row;//选中行 int m_col;//选中列 public: afx_msg void OnBnClickedLaserPowCheck(); afx_msg void OnBnClickedRecipeNameBtn(); afx_msg void OnBnClickedGroupNameBtn(); afx_msg void OnBnClickedRecipeCopyBtn(); afx_msg void OnBnClickedRecipeMoveBtn(); afx_msg void OnBnClickedOpenViewDlgBtn(); afx_msg void OnBnClickedAddGroupBtn(); afx_msg void OnBnClickedDelGroupBtn(); afx_msg void OnBnClickedAddRecipeBtn(); afx_msg void OnBnClickedDelRecipeBtn(); afx_msg void OnBnClickedRecipeToEditBtn(); afx_msg void OnCbnSelchangeNewRecipeGroupCombo(); afx_msg void OnNMClickGroupRecipeList(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnNMClickEditRecipeList(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnNMClickEditSubRecipeList(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnBnClickedEditParSaveBtn(); afx_msg void OnBnClickedAddSubRecipeBtn(); afx_msg void OnBnClickedDelSubRecipeBtn(); afx_msg void OnBnClickedSubRecipeMoveUp(); afx_msg void OnBnClickedSubRecipeMoveDown(); afx_msg void OnCbnSelchangeSelScanAreaCombo(); afx_msg void OnCbnSelchangeSelOffsetTableCombo(); afx_msg void OnCbnSelchangeSelAreaIdxCombo(); afx_msg void OnCbnSelchangeSelBoolValCombo(); afx_msg void OnBnClickedRenameSubRecipeBtn(); afx_msg void OnBnClickedRcpCompareBtn(); afx_msg void OnEnKillfocusDoubleEdit(); afx_msg void OnBnClickedRcpHistoryBtn(); afx_msg void OnBnClickedRcpOffsetTab(); afx_msg void OnBnClickedUpdateRecipeBtn(); };