www.pudn.com > MyAssignment.rar > MyAssignmentView.h


// MyAssignmentView.h : interface of the CMyAssignmentView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MYASSIGNMENTVIEW_H__3FBD13DF_7DEC_48C0_9786_8F1BCCE3E48B__INCLUDED_) 
#define AFX_MYASSIGNMENTVIEW_H__3FBD13DF_7DEC_48C0_9786_8F1BCCE3E48B__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#define N 9 
 
class CMyAssignmentView : public CView 
{ 
protected: // create from serialization only 
	CMyAssignmentView(); 
	DECLARE_DYNCREATE(CMyAssignmentView) 
 
// Attributes 
public: 
	CMyAssignmentDoc* GetDocument(); 
 
// Operations 
public: 
CPoint ptset[N],pt[N], pts[N], ptse[N],p[N],ptset1[N]; 
	int flag; 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMyAssignmentView) 
	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: 
	int m_cut; 
	virtual ~CMyAssignmentView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CMyAssignmentView) 
	afx_msg void OnClipline(); 
	afx_msg void OnClippolygon(); 
	afx_msg void OnCutEmer(); 
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in MyAssignmentView.cpp 
inline CMyAssignmentDoc* CMyAssignmentView::GetDocument() 
   { return (CMyAssignmentDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MYASSIGNMENTVIEW_H__3FBD13DF_7DEC_48C0_9786_8F1BCCE3E48B__INCLUDED_)