Share via


CMFCColorBar::CreatePalette

Initializes a palette with the colors in a specified array of colors.

static BOOL CreatePalette(
   const CArray<COLORREF, COLORREF>& arColors, 
   CPalette& palette
);

Parameters

Parameter

Description

[in] arColors

An array of colors.

[in] palette

A palette of colors.

Return Value

TRUE if this method is successful; otherwise, FALSE.

Requirements

Header: afxcolorbar.h

See Also

Reference

Hierarchy Chart

CMFCColorBar Class

COLORREF

CPalette Class