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
#pragma once
 
 
// CThresSetDlg ¶Ô»°¿ò
#include "ThresProcess.h"
 
class CThresSetDlg : public CDialogEx
{
    DECLARE_DYNAMIC(CThresSetDlg)
 
public:
    CThresSetDlg(CWnd* pParent = NULL);   // ±ê×¼¹¹Ô캯Êý
    virtual ~CThresSetDlg();
 
// ¶Ô»°¿òÊý¾Ý
#ifdef AFX_DESIGN_TIME
    enum { IDD = IDD_DIALOG_THRES_SET };
#endif
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Ö§³Ö
 
    DECLARE_MESSAGE_MAP()
 
public:
    virtual BOOL OnInitDialog();
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    afx_msg void OnDestroy();
 
    int setDimensionDir(DimensionDir eDir);
    void ChangeVisionType(DimensionDir eDir);
 
private:
    CGridCtrl    m_PanelThres;
    std::vector<CString> m_vParams;
    CThresProcess *m_dot;
    DimensionDir m_eDir;
 
private:
    //1. ³õʼ»¯Panel
    void InitPanel(void);
 
    //2. ±£´æÊý¾Ý
    void SaveThresParam(void);
 
    //3. ÏÔʾÊý¾Ý
    void ShowThresParam(void);
 
    //4. ÏÔʾ½á¹û
    void DispResult(void);
 
    //5. ÏÔʾËùÓеĽá¹û
    void DispAllResult(void);
 
public:
    afx_msg void OnBnClickedButtonThresSave();
    afx_msg void OnBnClickedButtonThresRoiSet();
    afx_msg void OnBnClickedButtonThresProcess();
};