1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#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();
};