www.pudn.com > final_6.rar > Frontview.h
#if !defined(AFX_FRONTVIEW_H__02E5E87D_6FD7_4137_8D95_453258C6AA43__INCLUDED_)
#define AFX_FRONTVIEW_H__02E5E87D_6FD7_4137_8D95_453258C6AA43__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Frontview.h : header file
//
#include "Base.h"
#include "Shape.h"
/////////////////////////////////////////////////////////////////////////////
// CFrontview view
class CFrontview : public CView
{
protected:
CFrontview(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CFrontview)
// Attributes
public:
CGPoint *startPoint;
CPoint prePoint,curPoint;
// Operations
public:
void SetStartPoint(CGPoint *mousePoint);
BOOL MouseOn(CPoint point);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFrontview)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CFrontview();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CFrontview)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FRONTVIEW_H__02E5E87D_6FD7_4137_8D95_453258C6AA43__INCLUDED_)