LPEN

typedef struct tagLPEN {

long lopnStyle;

POINT lopnWidth;

long lopnColor;

} LPEN;

The LPEN structure specifies a logical pen. Pens are used to draw lines and borders.

Members

lopnStyle

Specifies the pen style. GDI requires that drivers support at least the following pen styles.

Value Meaning

LS_SOLID (0) Draws solid lines.
LS_DASHED (1) Draws dashed lines.
LS_DOTTED (2) Draws dotted lines.
LS_DOTDASHED (3) Draws lines with alternating dots and dashes.
LS_DASHDOTDOT (4) Draws lines with a repeating pattern of a dash followed by two dots.
LS_NOLINE (5) Nothing is drawn.
LS_INSIDEFRAME (6) Creates a pen in which a line is drawn inside the frame of ellipses and rectangles. If the width of the pen is greater than 1 and the pen style is PS_INSIDEFRAME, the line is drawn inside the frame of all primitives except polygons and polylines; the pen is drawn with a logical (dithered) color if the pen color does not match an available RGB value. The PS_INSIDEFRAME style is identical to PS_SOLID if the pen width is less than or equal to 1.

lopnWidth

Specifies a POINT structure whose x member contains the pen width in device units. A zero-width pen is drawn with the system's smallest width. Negative-width pens have no width and are NULL pens. The y member is ignored.

lopnColor

Specifies the color for the pen. Pen colors are specified as physical colors. For palette-capable devices, the value is a color index if the high byte is 0x0FFH.

See Also

RealizeObject