ImageViewView.h
上传用户:alisonmail
上传日期:2013-02-28
资源大小:500k
文件大小:3k
源码类别:

图片显示

开发平台:

Visual C++

  1. #if !defined(IMAGEVIEWVIEW_H__9AB61CEE_47C5_11D0_B717_00C0A83735D8__INCLUDED_)
  2. #define IMAGEVIEWVIEW_H__9AB61CEE_47C5_11D0_B717_00C0A83735D8__INCLUDED_
  3. // ImageViewView.h : interface of the CImageViewView class
  4. //
  5. /////////////////////////////////////////////////////////////////////////////
  6. #include "ImageObject.h"
  7. #include "ChildFrm.h"
  8. class CImageViewView : public CScrollView
  9. {
  10. protected: // create from serialization only
  11. CImageViewView();
  12. DECLARE_DYNCREATE(CImageViewView)
  13. // Attributes
  14. public:
  15. CImageViewDoc* GetDocument();
  16. CImageObject *m_pImageObject;
  17. BOOL m_bImageLoaded;
  18. BOOL m_bCropBoxShowing;
  19. CRectTracker *m_pTracker;
  20. void ResizeWindow( void );
  21. // Operations
  22. public:
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CImageViewView)
  26. public:
  27. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  28. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  29. protected:
  30. virtual void OnInitialUpdate(); // called first time after construct
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. public:
  34. virtual ~CImageViewView();
  35. #ifdef _DEBUG
  36. virtual void AssertValid() const;
  37. virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39. protected:
  40. // Generated message map functions
  41. protected:
  42. //{{AFX_MSG(CImageViewView)
  43. afx_msg void OnSetFocus(CWnd* pOldWnd);
  44. afx_msg void OnOperationsShowcropbox();
  45. afx_msg void OnUpdateOperationsShowcropbox(CCmdUI* pCmdUI);
  46. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  47. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  48. afx_msg void OnOperationsCrop();
  49. afx_msg void OnOperationsStretch();
  50. afx_msg void OnOperationsFlip();
  51. afx_msg void OnOperationsInvert();
  52. afx_msg void OnOperationsRotate();
  53. afx_msg void OnOperationsSetpalettecreationtype();
  54. afx_msg void OnOperationsChangeimagecolordepth();
  55. afx_msg void OnPointprocessesChangebrightness();
  56. afx_msg void OnPointprocessesColorize();
  57. afx_msg void OnPointprocessesMakegray();
  58. afx_msg void OnPointprocessesReversecolors();
  59. afx_msg void OnPointprocessesViewhistogram();
  60. afx_msg void OnAreaprocessesChangecontract();
  61. afx_msg void OnAreaprocessesEdgeenhance();
  62. afx_msg void OnAreaprocessesEqualizecontrast();
  63. afx_msg void OnAreaprocessesHighpassfilter();
  64. afx_msg void OnAreaprocessesLowpassfilter();
  65. afx_msg void OnAreaprocessesMedianfilter();
  66. afx_msg void OnPointprocessesFft();
  67. afx_msg void OnPointprocessesIfft();
  68. afx_msg void OnPointprocessesDct();
  69. afx_msg void OnEdgedetect();
  70. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  71. afx_msg void OnReload();
  72. afx_msg void OnAddnoise();
  73. afx_msg void OnRiverExtract();
  74. //}}AFX_MSG
  75. DECLARE_MESSAGE_MAP()
  76. };
  77. #ifndef _DEBUG  // debug version in ImageViewView.cpp
  78. inline CImageViewDoc* CImageViewView::GetDocument()
  79.    { return (CImageViewDoc*)m_pDocument; }
  80. #endif
  81. /////////////////////////////////////////////////////////////////////////////
  82. //{{AFX_INSERT_LOCATION}}
  83. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  84. #endif // !defined(IMAGEVIEWVIEW_H__9AB61CEE_47C5_11D0_B717_00C0A83735D8__INCLUDED)