Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Call this function to set the background color for an image list.
COLORREF SetBkColor(
   COLORREF cr 
);
Parameters
- cr
Background color to set. It can be CLR_NONE. In that case, images are drawn transparently using the mask. 
Return Value
The previous background color if successful; otherwise CLR_NONE.
Example
// Set the background color to white.
m_myImageList.SetBkColor(RGB(255, 255, 255));
ASSERT(m_myImageList.GetBkColor() == RGB(255, 255, 255));
Requirements
Header: afxcmn.h