ATTACH_BITMAP_PALETTE@

Platform

Win32, x64

Purpose

To attach a palette to a DC.

Syntax

INTEGER ATTACH_BITMAP_PALETTE@( HDC, P )
INTEGER(7) HDC, P

Description

To attach a colour palette to a device context. This should not normally be needed as SET_COLOURS@ provides sufficient flexibility.

Return value

On success 1 will be returned. -1 indicates that the screen type cannot provide the palette requested due to too few palette entries available. A zero indicates that the display is in full colour mode and therefore does not use a palette.

See also

ACTIVATE_BITMAP_PALETTE@

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited