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