LOGPEN Structure

The LOGPEN structure has the following form:

typedef struct tagLOGPEN {  /* lgpn */
    UINT     lopnStyle;
    POINT    lopnWidth;
    COLORREF lopnColor;
} LOGPEN;

The LOGPEN structure defines the style, width, and color of a pen, a drawing object used to draw lines and borders. The CPen::CreatePenIndirect function uses the LOGPEN structure.

Members

lopnStyle

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

lopnWidth

Specifies the pen width, in logical units. If the lopnWidth member is 0, the pen is 1 pixel wide on raster devices regardless of the current mapping mode.

lopnColor

Specifies the pen color.

Comments

The y value in the POINT structure for the lopnWidth member is not used.

See Also   CPen::CreatePenIndirect