home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch27 / ball / ballview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-12  |  1.5 KB  |  80 lines

  1. // ballview.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CBallView form view
  6.  
  7. #ifndef __AFXEXT_H__
  8. #include <afxext.h>
  9. #endif
  10.  
  11. class CBallView : public CFormView
  12. {
  13.     DECLARE_DYNCREATE(CBallView)
  14. protected:
  15.     CBallView();            // protected constructor used by dynamic creation
  16.  
  17.  
  18.     //////////////////////
  19.     // MY CODE STARTS HERE
  20.     //////////////////////
  21.  
  22.     virtual void OnInitialUpdate();
  23.  
  24.     ////////////////////
  25.     // MY CODE ENDS HERE
  26.     ////////////////////
  27.  
  28. // Form Data
  29. public:
  30.     //{{AFX_DATA(CBallView)
  31.     enum { IDD = IDD_DIALOG1 };
  32.     BOOL    m_AutoRepeat;
  33.     //}}AFX_DATA
  34.  
  35. // Attributes
  36. public:
  37.  
  38.  
  39.    ///////////////////////
  40.    // MY CODE STARTS HERE
  41.    //////////////////////
  42.  
  43.    // The current frame number.
  44.    int m_CurrentFrame;
  45.  
  46.    // An array for the 11 bitmaps.
  47.    CBitmap* m_pB[11];
  48.  
  49.    ////////////////////
  50.    // MY CODE ENDS HERE
  51.    ////////////////////
  52.  
  53.  
  54. // Operations
  55. public:
  56.  
  57.    //////////////////////
  58.    // MY CODE STARTS HERE
  59.    //////////////////////
  60.  
  61.    virtual void OnDraw(CDC* pDC);
  62.  
  63.    ////////////////////
  64.    // MY CODE ENDS HERE
  65.    ////////////////////
  66.  
  67. // Implementation
  68. protected:
  69.     virtual ~CBallView();
  70.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  71.     // Generated message map functions
  72.     //{{AFX_MSG(CBallView)
  73.     afx_msg void OnStartButton();
  74.     afx_msg void OnTimer(UINT nIDEvent);
  75.     //}}AFX_MSG
  76.     DECLARE_MESSAGE_MAP()
  77. };
  78.  
  79. /////////////////////////////////////////////////////////////////////////////
  80.