home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / mdidocvw / bncvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.2 KB  |  79 lines

  1. // BounceVw.h : header file
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CBounceView view
  16.  
  17. class CBounceView : public CView
  18. {
  19. protected:
  20.     CBounceView();           // protected constructor used by dynamic creation
  21.     DECLARE_DYNCREATE(CBounceView)
  22.  
  23. // Attributes
  24. public:
  25.  
  26. // Operations
  27. public:
  28.     void MakeNewBall();
  29.     void ChangeSpeed();
  30.     CBounceDoc* GetDocument();
  31.     void MixColors();
  32.  
  33. // Overrides
  34.     // ClassWizard generated virtual function overrides
  35.     //{{AFX_VIRTUAL(CBounceView)
  36.     public:
  37.     virtual void OnInitialUpdate();
  38.     protected:
  39.     virtual void OnDraw(CDC* pDC);      // overridden to draw this view
  40.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  41.     //}}AFX_VIRTUAL
  42.  
  43. // Implementation
  44. protected:
  45.     virtual ~CBounceView();
  46. #ifdef _DEBUG
  47.     virtual void AssertValid() const;
  48.     virtual void Dump(CDumpContext& dc) const;
  49. #endif
  50.  
  51.     // Generated message map functions
  52. protected:
  53.     //{{AFX_MSG(CBounceView)
  54.     afx_msg void OnCustomColor();
  55.     afx_msg void OnFast();
  56.     afx_msg void OnSlow();
  57.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  58.     afx_msg void OnSize(UINT nType, int cx, int cy);
  59.     afx_msg void OnTimer(UINT nIDEvent);
  60.     afx_msg void OnUpdateFast(CCmdUI* pCmdUI);
  61.     afx_msg void OnUpdateSlow(CCmdUI* pCmdUI);
  62.     afx_msg void OnUpdateCustom(CCmdUI* pCmdUI);
  63.     afx_msg void OnUpdateBlack(CCmdUI* pCmdUI);
  64.     afx_msg void OnUpdateBlue(CCmdUI* pCmdUI);
  65.     afx_msg void OnUpdateGreen(CCmdUI* pCmdUI);
  66.     afx_msg void OnUpdateRed(CCmdUI* pCmdUI);
  67.     afx_msg void OnUpdateWhite(CCmdUI* pCmdUI);
  68.     afx_msg void OnColor();
  69.     //}}AFX_MSG
  70.     DECLARE_MESSAGE_MAP()
  71. };
  72.  
  73. #ifndef _DEBUG  // debug version in HelloVw.cpp
  74. inline CBounceDoc* CBounceView::GetDocument()
  75.    { return (CBounceDoc*)m_pDocument; }
  76. #endif
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79.