Function:
CreatePen(fnPenStyle, nWidth, crColour)
|
Description:
Creates a pen object.
|
Parameters:
PenStyle: style of the pen to create (can be one of the
following)
PS_SOLID = 0
Solid Pen.
PS_DASH = 1
The pen is dashed. Width must be one pixel.
PS_DOT = 2
The pen is dotted. Width must be one pixel.
PS_DASHDOT = 3
The pen has alternating dashes and dots. Width must be one pixel.
PS_DASHDOTDOT = 4
The pen has alternating dashes followed by two dots. Width must be one
pixel.
PS_NULL = 5
The pen is invisible.
PS_INSIDEFRAME = 6
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.
Width: The width of the pen. If this is 0, the pen
is one pixel wide.
Colour: The RGB value of the color
to give the solid brush.
|
Returns:
A handle to the newly created pen if successful, or 0 if
an error occured.
|
Example: 
Click on the calc icon to view a sample of the CreatePen
function.
|