www.pudn.com > final_6.rar > LeftView.h
#if !defined(AFX_LEFTVIEW_H__0A8023CA_4CB3_4131_A9C2_01A95CE16738__INCLUDED_)
#define AFX_LEFTVIEW_H__0A8023CA_4CB3_4131_A9C2_01A95CE16738__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LeftView.h : header file
//
#include"Base.h"
/////////////////////////////////////////////////////////////////////////////
// CLeftView view
class CLeftView : public CView
{
protected:
CLeftView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CLeftView)
// Attributes
public:
CPoint prePoint,curPoint;
CGPoint *startPoint;
// Operations
public:
void SetStartPoint(CGPoint *mousePoint);
BOOL MouseOn(CPoint point);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLeftView)
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 ~CLeftView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CLeftView)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LEFTVIEW_H__0A8023CA_4CB3_4131_A9C2_01A95CE16738__INCLUDED_)