#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(); };