Export (0) Print
Expand All
MFC
Expand Minimize
This topic has not yet been rated - Rate this topic

CListCtrl::SetTextBkColor

Sets the background color of text in a list view control.

BOOL SetTextBkColor(
   COLORREF cr 
);
cr

A COLORREF specifying the new text background color. 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.SetTextBkColor(crBkColor);
		ASSERT(m_myListCtrl.GetTextBkColor() == crBkColor);


Header: afxcmn.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.