Silverfrost Logo About Us | Contact Us
 

CHANGE_PEN@

Platform

Win32(ClearWin+)

Purpose

To change the pen in a device context acquired through GET_BITMAP_DC@.

Syntax

INTEGER FUNCTION CHANGE_PEN@(HDC,PEN_STYLE,WIDTH,COLOUR)
INTEGER(7) HDC
INTEGER PEN_STYLE,WIDTH,COLOUR

Description

The pen associated with a device context acquired through GET_BITMAP_DC@ can be changed using the Windows API function SelectObject. However, when using the CHANGE_PEN@ function, ClearWin+ keeps track of which pens have been created, re-uses them where possible and finally deletes them automatically. The style, width, and colour arguments are as supplied to the Windows API function CreatePen.

Return value

Always returns 1.

 

 

Copyright © 1999-2017 Silverfrost Limited