home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / sprmgr20 / sprite / demo16 / spritvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-03  |  1.2 KB  |  50 lines

  1. // spritvw.h : interface of the CSpritesView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CSpritesView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CSpritesView();
  9.     DECLARE_DYNCREATE(CSpritesView)
  10.  
  11. // Attributes
  12. public:
  13.     CSpritesDoc* GetDocument();
  14.  
  15.     CSpriteMgr    m_SpriteMgr;
  16.  
  17. // Operations
  18. public:
  19.  
  20. // Implementation
  21. public:
  22.     virtual ~CSpritesView();
  23.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  24.     virtual void OnInitialUpdate();
  25.         
  26. #ifdef _DEBUG
  27.     virtual void AssertValid() const;
  28.     virtual void Dump(CDumpContext& dc) const;
  29. #endif
  30.  
  31.  
  32. // Generated message map functions
  33. protected:
  34.     //{{AFX_MSG(CSpritesView)
  35.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  36.     afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  37.     afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  38.     afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  39.     afx_msg void OnTimer(UINT nIDEvent);
  40.     //}}AFX_MSG
  41.     DECLARE_MESSAGE_MAP()
  42. };
  43.  
  44. #ifndef _DEBUG    // debug version in spritvw.cpp
  45. inline CSpritesDoc* CSpritesView::GetDocument()
  46.    { return (CSpritesDoc*) m_pDocument; }
  47. #endif
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50.