TransparentPicView.h
上传用户:aokegd
上传日期:2009-12-14
资源大小:1276k
文件大小:2k
源码类别:

书籍源码

开发平台:

Visual C++

  1. // TransparentPicView.h : interface of the CTransparentPicView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_TRANSPARENTPICVIEW_H__40BB3F0D_78E7_11D6_8F32_00E04CE76240__INCLUDED_)
  5. #define AFX_TRANSPARENTPICVIEW_H__40BB3F0D_78E7_11D6_8F32_00E04CE76240__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CTransparentPicView : public CView
  10. {
  11. protected: // create from serialization only
  12. CTransparentPicView();
  13. DECLARE_DYNCREATE(CTransparentPicView)
  14. // Attributes
  15. public:
  16. CTransparentPicDoc* GetDocument();
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CTransparentPicView)
  22. public:
  23. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  24. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25. protected:
  26. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  27. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  28. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. public:
  32. void DrawTransparent(CDC* pDC,int x, int y, COLORREF crColour);
  33. virtual ~CTransparentPicView();
  34. #ifdef _DEBUG
  35. virtual void AssertValid() const;
  36. virtual void Dump(CDumpContext& dc) const;
  37. #endif
  38. protected:
  39. // Generated message map functions
  40. protected:
  41. //{{AFX_MSG(CTransparentPicView)
  42. // NOTE - the ClassWizard will add and remove member functions here.
  43. //    DO NOT EDIT what you see in these blocks of generated code !
  44. //}}AFX_MSG
  45. DECLARE_MESSAGE_MAP()
  46. };
  47. #ifndef _DEBUG  // debug version in TransparentPicView.cpp
  48. inline CTransparentPicDoc* CTransparentPicView::GetDocument()
  49.    { return (CTransparentPicDoc*)m_pDocument; }
  50. #endif
  51. /////////////////////////////////////////////////////////////////////////////
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  54. #endif // !defined(AFX_TRANSPARENTPICVIEW_H__40BB3F0D_78E7_11D6_8F32_00E04CE76240__INCLUDED_)