Solved

How to change all CListCtrl colors?

Posted on 1997-05-23
1
743 Views
Last Modified: 2013-11-19
There are SetBkColor, SetTextBkColor and SetTextColor methods of CListCtrl. How to change text and back colors of selected items?
0
Comment
Question by:AVaulin
1 Comment
 

Accepted Solution

by:
laleonard earned 20 total points
ID: 1301746
The CListCtrl uses the system colors for the selected text colors.  The only way to change them would be to globally change them (using ::SetSysColors()), or to make your CListCtrl an "owner-draw" control, by overriding CListCtrl::DrawItem() and drawing the whole Row yourself.Also, be aware that when the control loses focus, the background color of selected items changes to COLOR_3DFACE (if you have the "Always Show Selection" mode turned on).

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Importing Special Characters in Dynamics GP Through Integration Manager 3 75
List out all word 7 288
notReplace  challenge 53 125
Making an alias 7 93
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 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