This constructor constructs a CPen object. After constructing it, you must initialize it by using either the CPen::CreatePen or CPen::CreatePenIndirect methods, or by calling CGDI::CreateStockObject.
Header file: | Afxwin.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CPen( );
CPen ( int nPenStyle, int nWidth, COLORREF crColor );
throw( CResourceException );
Windows CE does not support the following overloaded implementation of the constructor:
CPen ( int nPenStyle, int nWidth, const LOGBRUSH* pLogBrush,
int nStyleCount = 0, const DWORD* lpStyle = NULL )
In Windows CE version 1.0, only solid pens can draw wide lines.
CPen::CreatePen, CPen::CreatePenIndirect, CGdiObject::CreateStockObject