?
Solved

How to change all CListCtrl colors?

Posted on 1997-05-23
1
Medium Priority
?
764 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
laleonard earned 40 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
In this post we will learn different types of Android Layout and some basics of an Android App.
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 video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

762 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