DlgIntensity.h
上传用户:gdjinyi
上传日期:2013-02-01
资源大小:1701k
文件大小:2k
源码类别:

源码/资料

开发平台:

Visual C++

  1. #if !defined(AFX_DLGINTENSITY_H__504BB8CE_7CF6_4D13_B5B7_DCC1BC84FEA5__INCLUDED_)
  2. #define AFX_DLGINTENSITY_H__504BB8CE_7CF6_4D13_B5B7_DCC1BC84FEA5__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // DlgIntensity.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CDlgIntensity dialog
  10. class CDlgIntensity : public CDialog
  11. {
  12. // Construction
  13. public:
  14. // 当前鼠标拖动状态,0表示未拖动,1表示正在拖动下限,2表示正在拖动上限。
  15. int m_iIsDraging;
  16. // 相应鼠标事件的矩形区域
  17. CRect m_MouseRect;
  18. // DIB的高度
  19. LONG m_lHeight;
  20. // DIB的宽度
  21. LONG m_lWidth;
  22. // 指向当前DIB象素的指针
  23. char * m_lpDIBBits;
  24. // 各个灰度值的计数
  25. LONG m_lCount[256];
  26. CDlgIntensity(CWnd* pParent = NULL);   // standard constructor
  27. // Dialog Data
  28. //{{AFX_DATA(CDlgIntensity)
  29. enum { IDD = IDD_DLG_Intensity };
  30. // 显示灰度区间的下限
  31. int m_iLowGray;
  32. // 显示灰度区间的上限
  33. int m_iUpGray;
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CDlgIntensity)
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. // Generated message map functions
  44. //{{AFX_MSG(CDlgIntensity)
  45. afx_msg void OnPaint();
  46. afx_msg void OnKillfocusEDITLowGray();
  47. afx_msg void OnKillfocusEDITUpGray();
  48. virtual void OnOK();
  49. virtual BOOL OnInitDialog();
  50. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  51. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  52. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_DLGINTENSITY_H__504BB8CE_7CF6_4D13_B5B7_DCC1BC84FEA5__INCLUDED_)