Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Problem with CXTListCtrl background
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with CXTListCtrl background

 Post Reply Post Reply
Author
Message
tataxin View Drop Down
Newbie
Newbie


Joined: 22 May 2008
Location: United Kingdom
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote tataxin Quote  Post ReplyReply Direct Link To This Post Topic: Problem with CXTListCtrl background
    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,
Back to Top
tataxin View Drop Down
Newbie
Newbie


Joined: 22 May 2008
Location: United Kingdom
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote tataxin Quote  Post ReplyReply Direct Link To This Post Posted: 03 July 2008 at 8:58pm
I solved it.
I have to draw it myself in NMCustomDraw function
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.