www.pudn.com > my2cadtest07261930.rar > AnyPolygonTool.h, change:2006-07-19,size:608b


 
#ifndef _anypolygontool_ 
#define _anypolygontool_ 
 
 
#include "Tool.h" 
#include "LineTool.h" 
 
class CAnyPolygonTool : public CTool   
{ 
public: 
	CAnyPolygonTool(HWND hWnd); 
	virtual ~CAnyPolygonTool(); 
public: 
    virtual void OnLButtonDown(WPARAM wParam,LPARAM lParam); 
	virtual void OnMouseMove(WPARAM wParam,LPARAM lParam); 
    virtual void OnRButtonDown(WPARAM wParam,LPARAM lParam); 
 
public: 
	void Draw(); 
    void SaveSelf(); 
private: 
	CLineTool m_line; 
	int m_count ;                      //记录鼠标单击次数 
	POINT m_clickPT[300] ;             //数组存放点坐标 
 
 
}; 
 
#endif