Reference

SelectPalette(3w)

NAME

SelectPalette (GDI32.@)

SYNOPSIS

HPALETTE SelectPalette
(
HDC hDC,
HPALETTE hPal,
BOOL bForceBackground
)

PARAMS

hDC [In] Handle of device context.

hPal [In] Handle of logical color palette.

bForceBackground [In] Foreground/background mode.

DESCRIPTION

Selects logical palette into DC.

RETURNS

Success: Previous logical palette

Failure: NULL

IMPLEMENTATION

Declared in "gdi_private.h".

Implemented in "dlls/gdi32/palette.c".

Debug channel "palette".

History