BOOL CreatePenIndirect( LPLOGPEN lpLogPen );
Return Value
Nonzero if the function is successful; otherwise 0.
Parameters
lpLogPen
Points to the Windows LOGPEN structure that contains information about the pen.
Remarks
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.
CPen Overview | Class Members | Hierarchy Chart
See Also CPen::CreatePen, CPen::CPen