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


 
#ifndef _paratool_ 
#define _paratool_ 
 
#include "Tool.h" 
#include "LineTool.h" 
 
class CParaTool : public CTool   //平行四边形  和 平行线 绘制工具   
{ 
public: 
	CParaTool(HWND hWnd ,bool whatShape=true); 
	virtual ~CParaTool(); 
public: 
     void OnLButtonDown(WPARAM wParam,LPARAM lParam); 
	 void OnMouseMove(WPARAM wParam,LPARAM lParam); 
     void OnRButtonDown(WPARAM wParam, LPARAM lParam); 
     void RollBackOper(HDC &hdc); 
 
     void SaveSelf(); 
     void PreDraw(); 
     void Draw(); 
private: 
   CLineTool m_line1; 
 
   CSuperPoint m_thirdPT;    //平行四边形的第三个点 
   CSuperPoint m_fourthPT;  //平行四边形的第四个点 
 
   bool m_whatShape;       //判断是平行四边形还是平行线 
   bool m_isFirstDraw;      
}; 
 
#endif