www.pudn.com > MOUSEMove.rar > MOUSEMoveView.h
// MOUSEMoveView.h : interface of the CMOUSEMoveView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MOUSEMOVEVIEW_H__57F834CC_31F0_4B4F_8C45_C974EBB2DE01__INCLUDED_)
#define AFX_MOUSEMOVEVIEW_H__57F834CC_31F0_4B4F_8C45_C974EBB2DE01__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define N 100
class CMOUSEMoveView : public CView
{
protected: // create from serialization only
CMOUSEMoveView();
DECLARE_DYNCREATE(CMOUSEMoveView)
// Attributes
public:
CMOUSEMoveDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMOUSEMoveView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMOUSEMoveView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
CPoint pos;
int radius;
CPoint m_num[N];
int number;
// Generated message map functions
protected:
//{{AFX_MSG(CMOUSEMoveView)
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MOUSEMoveView.cpp
inline CMOUSEMoveDoc* CMOUSEMoveView::GetDocument()
{ return (CMOUSEMoveDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MOUSEMOVEVIEW_H__57F834CC_31F0_4B4F_8C45_C974EBB2DE01__INCLUDED_)