www.pudn.com > DRAW.rar > drawView.h


// drawView.h : interface of the CDrawView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_DRAWVIEW_H__CA9C4916_07B2_11D4_B0C9_5254AB167DFC__INCLUDED_) 
#define AFX_DRAWVIEW_H__CA9C4916_07B2_11D4_B0C9_5254AB167DFC__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CDrawView : public CScrollView 
{ 
protected: // create from serialization only 
	CDrawView(); 
	DECLARE_DYNCREATE(CDrawView) 
protected: 
	CString m_ClassName; 
	int m_Dragging; 
	HCURSOR m_hArrow; 
	HCURSOR m_hCross; 
	CPen m_PenDotted; 
	CPoint m_PointOld; 
	CPoint m_PointOrigin; 
 
	COLORREF m_cTextColor; 
	LOGFONT m_lf; 
 
// Attributes 
public: 
	CDrawDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDrawView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void OnInitialUpdate(); // called first time after construct 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	BOOL m_IsRect; 
	virtual ~CDrawView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CDrawView) 
	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 OnRButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnDrawFont(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in drawView.cpp 
inline CDrawDoc* CDrawView::GetDocument() 
   { return (CDrawDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DRAWVIEW_H__CA9C4916_07B2_11D4_B0C9_5254AB167DFC__INCLUDED_)