CImageList::SetBkColor

COLORREF SetBkColor( COLORREF cr );

Return Value

The previous background color if successful; otherwise CLR_NONE.

Parameters

cr

Background color to set. It can be CLR_NONE. In that case, images are drawn transparently using the mask.

Remarks

Call this function to set the background color for an image list.

Example

// The pointer to my image list.
extern CImageList* pmyImageList;

// Set the background color to white.
pmyImageList->SetBkColor(RGB(255, 255, 255));
ASSERT(pmyImageList->GetBkColor() == RGB(255, 255, 255));

CImageList OverviewClass MembersHierarchy Chart

See Also   CImageList::GetBkColor, COLORREF