BOOL CreatePenIndirect( LPLOGPEN lpLogPen );
lpLogPen
Points to the Windows LOGPEN structure that contains information about the pen.
The LOGPEN structure has the following form:
typedef struct tagLOGPEN {
WORD lopnStyle;
POINT lopnWidth;
COLORREF lopnColor;
} LOGPEN;
Initializes a pen that has the style, width, and color given in the structure pointed to by lpLogPen.
Pens that have a width greater than 1 pixel should always have either the PS_NULL, PS_SOLID, or PS_INSIDEFRAME style.
If a pen has the PS_INSIDEFRAME style and a color that does not match a color in the logical color table, the pen is drawn with a dithered color. The PS_INSIDEFRAME style is identical to PS_SOLID if the pen width is less than or equal to 1.
TRUE if the function is successful; otherwise FALSE.