Solved

CListCtrl text color for items

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 127
ASCII Non-Printable characters/codes and their HTML equivalents 6 132
iSeries DB2 Query 2 97
viewing source code from eclipse 13 110
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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