ImageEditWnd.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. // CImageEditWnd
  3. class CImageEditWnd : public CWnd
  4. {
  5. DECLARE_DYNAMIC( CImageEditWnd )
  6. public:
  7. CImageEditWnd();
  8. virtual ~CImageEditWnd();
  9. virtual BOOL Create( const RECT & rect , CWnd * pParentWnd );
  10. void SetScrool();
  11. int m_nViewWidth; // Workspace width in pixels
  12. int m_nViewHeight; // Workspace height in pixels
  13. int m_nHScrollPos; // Horizontal scroll position
  14. int m_nVScrollPos; // Vertical scroll position
  15. int m_nHPageSize; // Horizontal page size
  16. int m_nVPageSize; // Vertical page size
  17. CPoint m_ptLeftTop;
  18. BOOL m_bSection;
  19. SkinImageRect * m_pImageRect;
  20. SkinImageSection * m_pImageSection;
  21. CSkinBitmap * m_pCurrentBitmap;
  22. float m_fZoom;
  23. CRectTracker m_tracker;
  24. CRect m_rtTracker;
  25. CRect m_rtMargins;
  26. protected:
  27. DECLARE_MESSAGE_MAP()
  28. public:
  29. afx_msg void OnPaint();
  30. afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
  31. afx_msg void OnSize( UINT nType , int cx , int cy );
  32. afx_msg void OnVScroll( UINT nSBCode , UINT nPos , CScrollBar * pScrollBar );
  33. afx_msg void OnHScroll( UINT nSBCode , UINT nPos , CScrollBar * pScrollBar );
  34. afx_msg BOOL OnEraseBkgnd( CDC * pDC );
  35. afx_msg void OnLButtonDown( UINT nFlags , CPoint point );
  36. afx_msg void OnMouseMove( UINT nFlags , CPoint point );
  37. };