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


// TriangleTool.h: interface for the CTriangleTool class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_TRIANGLETOOL_H__186C56EE_2EFC_470B_B37B_C1010EB2F8AC__INCLUDED_) 
#define AFX_TRIANGLETOOL_H__186C56EE_2EFC_470B_B37B_C1010EB2F8AC__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "Tool.h" 
#include "LineTool.h" 
 
class CTriangleTool : public CTool   
{ 
public: 
	CTriangleTool(HWND hWnd); 
	virtual ~CTriangleTool(); 
 
public: 
     virtual void OnLButtonDown(WPARAM wParam,LPARAM lParam); 
	 virtual void OnMouseMove(WPARAM wParam,LPARAM lParam); 
   
	 virtual void OnRButtonDown(WPARAM wParam,LPARAM lParam); 
 
public: 
	void PreDraw(); 
	void Draw(); 
    void SaveSelf(); 
private: 
	CLineTool m_line; 
	CSuperPoint m_secondPT; 
 
    bool  m_operstatus; 
}; 
 
#endif