Print Page | Close Window

Problem with CXTListCtrl background

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=10753
Printed Date: 12 December 2024 at 8:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with CXTListCtrl background
Posted By: tataxin
Subject: Problem with CXTListCtrl background
Date Posted: 22 May 2008 at 9:03pm
Hi,
I have some problem with List Control sample.

I want to have checkboxes on list control, so I set extend style in OnInitDialog(), like this:

m_listCtrl.ModifyExtendedStyle(0, LVS_EX_CHECKBOXES|LVS_EX_FULLROWSELECT|LVS_EX_FULLROWSELECT);

when it runs, I try to change background color to black, and text color to white. Everything is ok except the background color of checkboxes?

How to change background color of these items?
Thank you,



Replies:
Posted By: tataxin
Date Posted: 03 July 2008 at 8:58pm
I solved it.
I have to draw it myself in NMCustomDraw function



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net