www.pudn.com > Poly.rar > PolyTopDoc.h


// PolyTopDoc.h : interface of the CPolyTopDoc class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_POLYTOPDOC_H__3F1BB98A_32A5_4382_9CD0_A9915C625A1B__INCLUDED_) 
#define AFX_POLYTOPDOC_H__3F1BB98A_32A5_4382_9CD0_A9915C625A1B__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "SortPoly.h" 
#include "ptpdata.h"	// Added by ClassView 
class CPolyTopDoc : public CDocument 
{ 
protected: // create from serialization only 
	CPolyTopDoc(); 
	DECLARE_DYNCREATE(CPolyTopDoc) 
 
// Attributes 
public: 
 
// Operations 
public: 
    CSortPoly          m_poly; 
	bool               m_disPt;    
	bool               m_disPoly; 
    CSize              m_size; 
  
	pointList          m_ptList; 
    intIntList         m_vPolygons; 
	int                m_chooseMode; 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CPolyTopDoc) 
	public: 
	virtual BOOL OnNewDocument(); 
	virtual void Serialize(CArchive& ar); 
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	CView* GetView(); 
	void InitData(); 
	 
	virtual ~CPolyTopDoc(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CPolyTopDoc) 
	afx_msg void OnLoadPoly(); 
	afx_msg void OnCreateTop(); 
	afx_msg void OnDefineZone(); 
	afx_msg void OnZoomIn(); 
	afx_msg void OnZoomOut(); 
	afx_msg void OnZoomSource(); 
	afx_msg void OnUpdateZoomIn(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateZoomOut(CCmdUI* pCmdUI); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_POLYTOPDOC_H__3F1BB98A_32A5_4382_9CD0_A9915C625A1B__INCLUDED_)