Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Encapsulates a Windows graphics device interface (GDI) pen.
class CPen : public CGdiObject
Members
Public Constructors
Name  | 
Description  | 
|---|---|
Constructs a CPen object.  | 
Public Methods
Name  | 
Description  | 
|---|---|
Creates a logical cosmetic or geometric pen with the specified style, width, and brush attributes, and attaches it to the CPen object.  | 
|
Creates a pen with the style, width, and color given in a LOGPEN structure, and attaches it to the CPen object.  | 
|
Returns a pointer to a CPen object when given a Windows HPEN.  | 
|
Gets an EXTLOGPEN underlying structure.  | 
|
Gets a LOGPEN underlying structure.  | 
Public Operators
Name  | 
Description  | 
|---|---|
Returns the Windows handle attached to the CPen object.  | 
Remarks
For more information on using CPen, see Graphic Objects.
Inheritance Hierarchy
CPen
Requirements
Header: afxwin.h