Partager via


CPalette::CreatePalette

Initializes a CPalette object by creating a Windows logical color palette and attaching it to the CPalette object.

BOOL CreatePalette(
   LPLOGPALETTE lpLogPalette 
);

Parameters

  • lpLogPalette
    Points to a LOGPALETTE structure that contains information about the colors in the logical palette.

Return Value

Nonzero if successful; otherwise 0.

Remarks

See the Windows SDK for more information about the LOGPALETTE structure.

Requirements

Header: afxwin.h

See Also

Concepts

CPalette Class

CPalette Members

Hierarchy Chart

CreatePalette

LOGPALETTE