www.pudn.com > PolyTry.rar > VIEW.H


// View.h : interface of the CPolyTryView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_VIEW_H__8F69AD48_8F50_45C4_BE9B_BF3B9C19E017__INCLUDED_) 
#define AFX_VIEW_H__8F69AD48_8F50_45C4_BE9B_BF3B9C19E017__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CPolyTryView : public CView 
{ 
protected: // create from serialization only 
	CPolyTryView(); 
	DECLARE_DYNCREATE(CPolyTryView) 
 
// Attributes 
public: 
	CPolyTryDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CPolyTryView) 
	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 ~CPolyTryView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CPolyTryView) 
	afx_msg void OnUpdateEditPolygonalize(CCmdUI* pCmdUI); 
	afx_msg void OnEditPolygonalize(); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
   // 
protected: 
   int      m_nPoints      ; 
   CPoint   m_points[100]  ; 
   bool     m_bFlushFaces  ; 
}; 
 
#ifndef _DEBUG  // debug version in View.cpp 
inline CPolyTryDoc* CPolyTryView::GetDocument() 
   { return (CPolyTryDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_VIEW_H__8F69AD48_8F50_45C4_BE9B_BF3B9C19E017__INCLUDED_)