Solved

CListCtrl text color for items

Posted on 2001-06-20
5
630 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 91
Pressing cancel button with C# UI Automation 3 52
Doc'in system (example?) BA 7 89
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 77
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: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

861 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

23 Experts available now in Live!

Get 1:1 Help Now