#ifndef __CPen_h
#define __CPen_h

class MfcPen : public MfcGdiObject
{
public:
	static MfcPen* New ();
	static void Delete (MfcPen* pPen);
	static MfcPen* FromHandle (HPEN hPen);
	BOOL CreatePen (int nPenStyle, int nWidth, COLORREF crColor);
	BOOL CreatePen (int nPenStyle, int nWidth, const LOGBRUSH* pLogBrush, int nStyleCount = 0, const DWORD* lpStyle = NULL);
	BOOL CreatePenIndirect (LPLOGPEN lpLogPen);
	operator HPEN () const;
	int GetLogPen (LOGPEN* pLogPen);
	int GetExtLogPen (EXTLOGPEN* pLogPen);

	virtual MfcRuntimeClass* GetRuntimeClass() const;
	virtual ~MfcPen();
#ifdef _DEBUG
	virtual void Dump(MfcDumpContext& dc) const;
#endif
};

#endif//__CPen_h
