LOGPEN Structure

Type LOGPEN
  lopnStyle As Long
  lopnWidth As POINT_TYPE
  lopnColor As Long
End Type

Description & Usage

The LOGPEN structure holds information used to identify a logical pen. The pen described by the structure is always shaped like a square.

Visual Basic-Specific Issues

None.

Data Members

lopnStyle
One of the following flags specifying the style of the pen:
PS_SOLID
The pen is solid.
PS_DASH
The pen is dashed. The width must be less than or equal to one.
PS_DOT
The pen is dotted. The width must be less than or equal to one.
PS_DASHDOT
The pen has alternating dashes and dots. The width must be less than or equal to one.
PS_DASHDOTDOT
The pen has alternating dashes followed by two dots. The width must be less than or equal to one.
PS_NULL
The pen is invisible.
PS_INSIDEFRAME
The pen is solid. Whenever a drawing function draws a figure inside a bounding rectangle, the dimensions of the figure are shrunk so that the entire figure, including the width of the pen, fits entirely within the bounding rectangle.
lopnWidth
The .x member of the structure identifies the width of the pen. A width of zero produces a one-pixel-wide pen no matter what. The .y member of the structure is ignored.
lopnColor
The RGB value of the color of the pen.

Constant Definitions

Const PS_SOLID = 0
Const PS_DASH = 1
Const PS_DOT = 2
Const PS_DASHDOT = 3
Const PS_DASHDOTDOT = 4
Const PS_NULL = 5
Const PS_INSIDEFRAME = 6

Used By

CreatePenIndirect

Go back to the alphabetical Structure listing.
Go back to the Reference section index.


Last Modified: October 16, 1999
This page is copyright © 1999 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/l/logpen.html