Solved

CListCtrl text color for items

Posted on 2001-06-20
5
627 Views
Last Modified: 2013-11-20
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
Comment
Question by:ulischmidt
5 Comments
 

Expert Comment

by:sgupta00
ID: 6212443
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
 
LVL 2

Expert Comment

by:GloriousRain
ID: 6212681
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
 

Expert Comment

by:Loggy_yyj
ID: 6212780
CListBox::DrawItem
0
 
LVL 8

Accepted Solution

by:
VinExpert earned 50 total points
ID: 6212858
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
 

Author Comment

by:ulischmidt
ID: 6213288
thank you VinExpert
i found it under your links at http://www.codeguru.com/mfc/comments/6432.shtml
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 52
not able to insert into temp table 68 150
maxBlock challenge 30 99
canBalance challenge 34 65
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now