Поделиться через


CImageList::SetBkColor

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

COLORREF SetBkColor(
   COLORREF cr 
);

Параметры

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

Возвращаемое значение

The previous background color if successful; otherwise CLR_NONE.

Пример

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

Требования

Header: afxcmn.h

См. также

Основные понятия

CImageList Class

CImageList Members

Hierarchy Chart

CImageList::GetBkColor

COLORREF