CGXPen::SetStyle

CGXPen& SetStyle(UINT style);

style

Specifies the pen type. This member can be one of the following values:

  • PS_SOLID - Creates a solid pen.

  • PS_DASH - Creates a dashed pen. (Valid only when the pen width is 1.)

  • PS_DOT - Creates a dotted pen. (Valid only when the pen width is 1.)

  • PS_DASHDOT - Creates a pen with alternating dashes and dots. (Valid only when the pen width is 1.)

  • PS_DASHDOTDOT - Creates a pen with alternating dashes and double dots. (Valid only when the pen width is 1.)

Return Value

Returns a reference to the object.

Remarks

Initializes the pen type.

See Also

 CGXPen::GetStyle

CGXPen

 Class Overview |  Class Members