Platform |
Win32, x64 |
Purpose |
To change the pen in a device context acquired through GET_BITMAP_DC@. |
Syntax |
INTEGER FUNCTION CHANGE_PEN@(HDC,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. |