Graphics functions (device context)

In this section:

The following routines transmit a handle to a device context and are particularly associated with the %gr (Graphics Region) and %dw (Owner Draw Graphics) formats described in (Graphics). GET_BITMAP_DC@ returns a handle for use with %dw whilst GET_CURRENT_DC@ returns a handle for a device context created by using %gr. These routines allow ClearWin+ to be used with Windows API functions and as such are unlikely to be of interest to a majority of ClearWin+ programmers.

ACTIVATE_BITMAP_PALETTE@

Ensures that the palette is set correctly for the current window.

ATTACH_BITMAP_PALETTE@

Attaches a palette to a DC.

CHANGE_PEN@

Changes the pen in a device context acquired through GET_BITMAP_DC@.

CLEAR_BITMAP@

Clears a bitmap device context acquired by GET_BITMAP_DC@.

GET_BITMAP_DC@

Creates a device context for use with %dw.

GET_CURRENT_DC@

Gets the current graphical device context.

RELEASE_BITMAP_DC@

Releases a bitmap device context acquired by GET_BITMAP_DC@.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited