GETVECTORPENSIZE

short Escape(hdc, GETVECTORPENSIZE, sizeof(LOGPEN),lpInData,lpOutData)

The GETVECTORPENSIZE printer escape retrieves the size, in device units, of a plotter pen. Graphics device interface (GDI) uses this information to prevent hatched brush patterns from overwriting the border of a closed figure.

Parameters

hdc

HDC Identifies the device context.

lpInData

LOGPEN FAR * Points to a LOGPEN structure that specifies the pen for which the width is to be retrieved.

lpOutData

LPPOINT Points to a POINT structure that contains in its second word the width of the pen, in device units.

Return Value

The return value specifies the outcome of the escape. This value is 1 if the escape is successful and zero if the escape is not successful or if it is not implemented.