www.pudn.com > my2cadtest07261930.rar > PolygonTool.h, change:2006-07-20,size:497b


 
#ifndef _polygontool_ 
#define _polygontool_ 
 
 
 
#include "Tool.h" 
 
class CPolygonTool : public CTool   
{ 
public: 
	CPolygonTool(HWND hWnd,int numPoly=4); 
	virtual ~CPolygonTool(); 
 
public: 
	void SaveSelf(); 
    void PreDraw(); 
	void Draw(); 
     
	void SetNumPoly(int num) 
	{ 
		m_numPoly=num; 
	} 
     
	int GetNumPoly() 
	{ 
		return m_numPoly; 
	} 
 
private: 
	int m_numPoly ;    //边数 
     
    bool m_IsFirstOpe;   //状态控制  保证动态绘图时痕迹完全檫除 
 
}; 
 
#endif