CPalette::CreatePalette

BOOL CreatePalette( LPLOGPALETTE lpLogPalette );

Return Value

Nonzero if successful; otherwise 0.

Parameters

lpLogPalette

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

Remarks

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

See the Win32 SDK Programmer’s Reference for more information about the LOGPALETTE structure.

CPalette OverviewClass MembersHierarchy Chart

See Also   ::CreatePalette, LOGPALETTE