CPen Methods

Construction Methods

Method Description
CPen Constructs a CPen object.

Initialization Methods

Method Description
CreatePen Creates a logical cosmetic or geometric pen with the specified style, width, and brush attributes, and attaches it to the CPen object.
CreatePenIndirect Creates a pen with the style, width, and color given in a LOGPEN structure, and attaches it to the CPen object.

Operations Methods

Method Description
FromHandle Returns a pointer to a CPen object when given a Windows CE HPEN.

Attributes Methods

Method Description
GetLogPen Gets a LOGPEN underlying structure.