◄CPen► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── BOOL CreatePenIndirect( LPLOGPEN lpLogPen ); Parameter Description <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. Return Value TRUE if the function is successful; otherwise FALSE. See Also ◄CPen::CreatePen►, ◄CPen::CPen► -♦-