// balltimeView.h : interface of the CBalltimeView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_BALLTIMEVIEW_H__1517C00C_BB30_11D5_B5B9_444553540000__INCLUDED_)
#define AFX_BALLTIMEVIEW_H__1517C00C_BB30_11D5_B5B9_444553540000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define     VELOCITY    5   /* pixels per move velocity */
#define     BALLRAD     20  /* radius of the ball */
#define     MINRAD      15  /* how close to the wall it can come */

class CBalltimeView : public CView
{
protected: // create from serialization only
        CBalltimeView();
        DECLARE_DYNCREATE(CBalltimeView)

// Attributes
public:
        CBalltimeDoc* GetDocument();

// Operations
public:

// Overrides
        // ClassWizard generated virtual function overrides
        //{{AFX_VIRTUAL(CBalltimeView)
        public:
        virtual void OnDraw(CDC* pDC);  // overridden to draw this view
        virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
        protected:
        //}}AFX_VIRTUAL

// Implementation
public:
        void DrawBall();
        CDC* pDC;
        int m_nYSize;
        int m_nXSize;
        BOOL m_bDrawOn;
        virtual ~CBalltimeView();
#ifdef _DEBUG
        virtual void AssertValid() const;
        virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
        //{{AFX_MSG(CBalltimeView)
        afx_msg void OnShow();
        afx_msg void OnSize(UINT nType, int cx, int cy);
        afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
        afx_msg void OnTimer(UINT nIDEvent);
        afx_msg void OnDestroy();
        //}}AFX_MSG
        DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in balltimeView.cpp
inline CBalltimeDoc* CBalltimeView::GetDocument()
   { return (CBalltimeDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BALLTIMEVIEW_H__1517C00C_BB30_11D5_B5B9_444553540000__INCLUDED_)