PDD_SURFCB_SETPALETTE callback function (ddrawint.h)

The DdSetPalette callback function attaches a palette to the specified surface.

Syntax

PDD_SURFCB_SETPALETTE PddSurfcbSetpalette;

DWORD PddSurfcbSetpalette(
  PDD_SETPALETTEDATA unnamedParam1
)
{...}

Parameters

unnamedParam1

Points to a DD_SETPALETTEDATA structure that contains the information required to set a palette to the specified surface.

Return value

DdSetPalette returns one of the following callback codes:

Requirements

Requirement Value
Target Platform Desktop
Header ddrawint.h (include Winddi.h)

See also

DD_SETPALETTEDATA