Skip to content

Latest commit

 

History

History
111 lines (74 loc) · 2.9 KB

nf-wingdi-animatepalette.md

File metadata and controls

111 lines (74 loc) · 2.9 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wingdi.AnimatePalette
AnimatePalette function (wingdi.h)
The AnimatePalette function replaces entries in the specified logical palette.
AnimatePalette
AnimatePalette function [Windows GDI]
_win32_AnimatePalette
gdi.animatepalette
wingdi/AnimatePalette
gdi\animatepalette.htm
gdi
65dd45e2-39a4-4a94-bd14-b0c8e4a609a3
12/05/2018
AnimatePalette, AnimatePalette function [Windows GDI], _win32_AnimatePalette, gdi.animatepalette, wingdi/AnimatePalette
wingdi.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Gdi32.lib
Gdi32.dll
Windows
19H1
AnimatePalette
wingdi/AnimatePalette
c++
APIRef
kbSyntax
DllExport
gdi32.dll
Ext-MS-Win-GDI-Internal-Desktop-L1-1-0.dll
GDI32Full.dll
AnimatePalette

AnimatePalette function

-description

The AnimatePalette function replaces entries in the specified logical palette.

-parameters

-param hPal [in]

A handle to the logical palette.

-param iStartIndex [in]

The first logical palette entry to be replaced.

-param cEntries [in]

The number of entries to be replaced.

-param ppe [in]

A pointer to the first member in an array of PALETTEENTRY structures used to replace the current entries.

-returns

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

-remarks

An application can determine whether a device supports palette operations by calling the GetDeviceCaps function and specifying the RASTERCAPS constant.

The AnimatePalette function only changes entries with the PC_RESERVED flag set in the corresponding palPalEntry member of the LOGPALETTE structure.

If the given palette is associated with the active window, the colors in the palette are replaced immediately.

-see-also

Color Functions

Colors Overview

CreatePalette

GetDeviceCaps

LOGPALETTE

PALETTEENTRY