CImageViewDlg.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #include "CImageView.h"
  3. // CImageViewDlg 对话框
  4. class CImageViewDlg : public CDialogEx
  5. {
  6. DECLARE_DYNAMIC(CImageViewDlg)
  7. public:
  8. CImageViewDlg(CWnd* pParent = nullptr); // 标准构造函数
  9. virtual ~CImageViewDlg();
  10. virtual BOOL OnInitDialog();
  11. // 对话框数据
  12. #ifdef AFX_DESIGN_TIME
  13. enum { IDD = IDD_CImageViewDlg };
  14. #endif
  15. protected:
  16. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  17. DECLARE_MESSAGE_MAP()
  18. public:
  19. CEdit m_editAllAverage;
  20. CEdit m_edtROIAverage;
  21. CStatic m_static_errornote;
  22. CButton m_btn_Accept;
  23. CButton m_btn_Reject;
  24. CString m_strNote;
  25. int m_nwidth;
  26. int m_nheight;
  27. unsigned short* m_pdata;
  28. BOOL m_bStrFlag;
  29. private:
  30. CImageView* m_pImageView;
  31. public:
  32. afx_msg LRESULT UpDataAverage(WPARAM wParam, LPARAM lParam);
  33. void SetBtnVisable(bool);
  34. bool m_bBtnVisable;
  35. int ShowAllAverage(unsigned short* data, int width, int height);
  36. int ShowROIAverage(unsigned short* data, int width, int height, int left, int top, int right, int bottom);
  37. afx_msg void OnBnClickedButtonAccept();
  38. afx_msg void OnBnClickedButtonReject();
  39. };