LWQ
2025-07-14 aef42eef51d1b86ac7217a88ce17c5156c30fe6d
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
#pragma once
 
#include "GrindProcess.h"
// CGrindSetDlg ¶Ô»°¿ò
 
class CGrindSetDlg : public CDialogEx
{
    DECLARE_DYNAMIC(CGrindSetDlg)
 
public:
    CGrindSetDlg(CWnd* pParent = NULL);   // ±ê×¼¹¹Ô캯Êý
    virtual ~CGrindSetDlg();
 
// ¶Ô»°¿òÊý¾Ý
#ifdef AFX_DESIGN_TIME
    enum { IDD = IDD_DIALOG_GRIND_SET };
#endif
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Ö§³Ö
 
    DECLARE_MESSAGE_MAP()
 
private:
    DimensionDir m_eDir;
    CGridCtrl    m_PanelGrind;
    std::vector<CString> m_vParams;
    CGrindProcess *m_dot;
 
    int m_nLeftLineDist;
    int m_nLeftThres;
 
private:
    void InitPanel(void);
 
    //2. ±£´æÊý¾Ý
    void SaveGrindParam(void);
 
    //3. ÏÔʾ²ÎÊý
    void ShowGrindParam(void);
 
    //4. ÏÔÊ¾ÇøÓò
    void DispAllResult(void);
 
public:
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    afx_msg void OnClose();
    virtual BOOL OnInitDialog();
    void ChangeVisionType(DimensionDir eDir);
    void setDimensionDir(DimensionDir eDir);
 
    afx_msg void OnBnClickedButtonProcessGrind();
    afx_msg void OnBnClickedButtonSaveGrind();
};