mrDarker
2025-08-08 421c49432b4fec542d1ac941490dac867281237a
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
62
#pragma once
 
// CMeasureSetDlg ¶Ô»°¿ò
#include "CornerDistProcess.h"
#include "afxwin.h"
 
class CMeasureSetDlg : public CDialogEx
{
    DECLARE_DYNAMIC(CMeasureSetDlg)
 
public:
    CMeasureSetDlg(CWnd* pParent = NULL);   // ±ê×¼¹¹Ô캯Êý
    virtual ~CMeasureSetDlg();
 
// ¶Ô»°¿òÊý¾Ý
#ifdef AFX_DESIGN_TIME
    enum { IDD = IDD_DIALOG_MEASURE_SET };
#endif
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Ö§³Ö
 
    DECLARE_MESSAGE_MAP()
 
private:
    CCornerDistProcess *m_dot;
 
    MeasureInfo m_inf[4];
 
    CComboBox m_combPointRefer[4];
    CComboBox m_combPointType[4];
    CComboBox m_combStartMode[4];
    CComboBox m_combEndMode[4];
 
    Point2I m_firstPoint;
    Point2I m_secondPoint;
 
private:
    //1. ³õʼ»¯¿Õ¼ä
    void InitControl(void);
 
    //2. ÏÔʾ²ÎÊý
    void ShowParamUi(void);
 
    //3. ±£´æ²ÎÊý
    void SaveCornerParam(void);
 
    void LockROI(int nType);
 
public:
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    virtual BOOL OnInitDialog();
    void SetDot(CCornerDistProcess *dot);
    
    afx_msg void OnClose();
    afx_msg void OnBnClickedButtonSetTopMeasure();
    afx_msg void OnBnClickedButtonDelTopMeasure();
    afx_msg void OnBnClickedButtonSetBotMeasure();
    afx_msg void OnBnClickedButtonDelBotMeasure();
    afx_msg void OnBnClickedButtonDrawRoiMeasure();
    afx_msg void OnBnClickedButtonDrawRoiMeasure2();
};