Export (0) Print
Expand All
Expand Minimize

CListCtrl::SetBkColor

Sets the background color of the list view control.

BOOL SetBkColor( 
   COLORREF cr  
);

cr

Background color to set, or the CLR_NONE value for no background color. List view controls with background colors redraw themselves significantly faster than those without background colors. For information, see COLORREF in the Windows SDK.

Nonzero if successful; otherwise zero.

		// Use the 3D button face color for the background.
		COLORREF crBkColor = ::GetSysColor(COLOR_3DFACE);
		m_myListCtrl.SetBkColor(crBkColor);
		ASSERT(m_myListCtrl.GetBkColor() == crBkColor);

Header: afxcmn.h

Show:
© 2014 Microsoft