www.pudn.com > my2cadtest07261930.rar > AttribTool.h, change:2006-07-26,size:989b


 
#ifndef _attribtool_ 
#define _attribtool_ 
 
#include "Tool.h" 
#include "list.h" 
#include "Shape.h" 
#include <commdlg.h> 
#include "resource.h" 
#include <stdio.h> 
 
 
extern HINSTANCE hInst; 
 
class CAttribTool : public CTool   
{ 
public: 
	CAttribTool(HWND hWnd); 
	virtual ~CAttribTool(); 
 
public: 
	void OnLButtonDown(WPARAM wParam,LPARAM lParam); 
    void OnRButtonDown(WPARAM wParam,LPARAM lParam){}; 
 
    void AttribDlg();    //调出设置对话框 
    static BOOL CALLBACK AttribProc(HWND,UINT,WPARAM,LPARAM); 
 
private: 
    void OnInitDialog(HWND &hwnd, LPARAM &lParam);    //初始化 
    void OnCtlColorStatic(WPARAM &wParam, LPARAM &lParam); 
	void OnOk(); 
    bool GetPenColor(HWND &hwnd); 
private: 
	CShape * m_catchShape; 
     
    HWND m_hPenColor;     
    HWND m_hPenWidth; 
    HWND m_hCBO; 
	 
    HWND m_hDlgWnd; 
	LOGPEN  m_penstruct; 
 
   CHOOSECOLOR	m_cDlgStruct;		//划笔颜色对话框结构  
   COLORREF	m_cCustomColors[8]; 
   int m_nIndex; 
}; 
 
#endif