VpeSetPen

<< Click to Display Table of Contents >>

Navigation:  Drawing Functions >

VpeSetPen

Previous pageReturn to chapter overviewNext page

Sets the style of the pen - all properties at once. All drawing objects that are inherited from the pen-object will use the pen (see "The Object-Oriented Style" in the Programmer's Manual for details).

You can use the PS_xyz pen styles from Windows GDI, but pen styles other than PS_SOLID are limited by the GDI to pens with a size of 1 pixel under Win 3.x, 9x and ME. So you should always use PS_SOLID until the GDI changes.

void VpeSetPen(

VpeHandle hDoc,

VpeCoord pen_size,

int pen_style,

COLORREF pen_color

)

VpeHandle hDoc

Document Handle or VPE Object Handle

VpeCoord pen_size

the thickness of the pen

int pen_style

one of the windows pen styles; possible values are:

Constant Name

Value

Comment

PS_SOLID

0

 

PS_DASH

1

-------

PS_DOT

2

........

PS_DASHDOT

3

_._._._

PS_DASHDOTDOT

4

_.._.._

COLORREF pen_color

one of the the "COLOR_xyz" constants described in Programmer's Manual or any RGB value

Default:

0.03 (which is 0.3 mm), PS_SOLID, COLOR_BLACK