• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 658
  • Last Modified:

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....????
0
ulischmidt
Asked:
ulischmidt
1 Solution
 
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
 
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
 
ulischmidtAuthor Commented:
thank you VinExpert
i found it under your links at http://www.codeguru.com/mfc/comments/6432.shtml
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now