#pragma once // CKeyVisionSetDlg ¶Ô»°¿ò #include "VisionRecipe.h" class CKeyVisionSetDlg : public CDialogEx { DECLARE_DYNAMIC(CKeyVisionSetDlg) public: CKeyVisionSetDlg(CWnd* pParent = NULL); // ±ê×¼¹¹Ô캯Êý virtual ~CKeyVisionSetDlg(); // ¶Ô»°¿òÊý¾Ý #ifdef AFX_DESIGN_TIME enum { IDD = IDD_DIALOG_KEY_SET }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Ö§³Ö DECLARE_MESSAGE_MAP() private: //1. ³õʼ»¯ÏÔʾ void ShowUiParams(void); //2. »ñÈ¡ÐÅÏ¢ void SaveUiParam(void); //3. ¼ÓËø void LockBtn(BOOL isLock); private: CButton m_btnVisionUse[8]; CButton m_btnLocUse[8]; CButton m_btnDistUse[9]; CButton m_btnRcutUse[9]; CButton m_btnGrindUse[9]; CButton m_btnCutUse[9]; CButton m_btnVisionDisplay; CButton m_btnThresUse[9]; CButton m_btnHoleUse[9]; CButton m_btnDebugKey[7]; CString m_strPassword; public: virtual BOOL OnInitDialog(); afx_msg void OnClose(); virtual BOOL PreTranslateMessage(MSG* pMsg); afx_msg void OnBnClickedButtonSaveRecipe(); afx_msg void OnBnClickedButtonLoadRecipe(); afx_msg void OnBnClickedButtonProcessKey(); afx_msg void OnBnClickedCheckDebugToolKey(); afx_msg void OnBnClickedButtonDebugModeKey(); };