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


 
#ifndef _catchtool_ 
#define _catchtool_ 
 
#include "Tool.h" 
 
class CCatchTool : public CTool   
{ 
public: 
	CCatchTool(HWND hWnd); 
	virtual ~CCatchTool(); 
 
public: 
	void OnLButtonDown(WPARAM wParam,LPARAM lParam); 
	void OnMouseMove(WPARAM wParam,LPARAM lParam); 
     
    void OnLButtonUp(WPARAM wParam,LPARAM lParam); 
    void OnRButtonUp(WPARAM wParam,LPARAM lParam){}; 
private: 
    void DrawCatchRect(HDC &hdc); 
    void CCatchTool::CalcRECT(); 
    int 	m_catchID;       //保存图形在链表中的位置    
    RECT m_catchRect; 
}; 
 
#endif