BOOL CreatePen( int nPenStyle, int nWidth, DWORD crColor );
nPenStyle
Specifies the style for the pen. For a list of possible values, see the nPenStyle parameter to the CPen constructor.
nWidth
Specifies the width of the pen (in logical units).
crColor
Contains an RGB color for the pen.
Initializes a pen with the specified style, width, and color. The pen can be subsequently selected as the current pen for any device context.
Pens that have a width greater than 1 pixel should always have either the PS_NULL, PS_SOLID, or PS_INSIDEFRAME style.
TRUE if the function is successful; otherwise FALSE.