CListCtrl text color for items

Hi!
How can i change the textcolor or style (bold,...)
in a CListCtrl....not for the whole control but for a single line or field....????
ulischmidtAsked:
Who is Participating?
 
Vinayak KumbarSr Program ManagerCommented:
Hi,

Take a look at the following links

http://www.codeguru.com/listview/supergrid.shtml
http://www.codeguru.com/listview/ReportCtrl.shtml
http://www.codeguru.com/listview/row_color.shtml

They may give u some idea on what to do and how to do.
VinExpert
0
 
sgupta00Commented:
hope this helps ....

CListCtrl::SetItem
BOOL SetItem( const LVITEM* pItem );

BOOL SetItem( int nItem, int nSubItem, UINT nMask, LPCTSTR lpszItem, int nImage, UINT nState, UINT nStateMask, LPARAM lParam );

0
 
GloriousRainCommented:
Hi,
Search in MSDN: "CtrlTest" and see CColorListBox class for sample or link http://www.msdn.microsoft.com/library/devprods/vs6/visualc/vcsample/_sample_mfc_ctrltest.htm

0
 
Loggy_yyjCommented:
CListBox::DrawItem
0
 
ulischmidtAuthor Commented:
thank you VinExpert
i found it under your links at http://www.codeguru.com/mfc/comments/6432.shtml
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.