Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to get background color of TaskPanel control?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to get background color of TaskPanel control?

 Post Reply Post Reply
Author
Message
cjsnewbie View Drop Down
Groupie
Groupie


Joined: 24 October 2006
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjsnewbie Quote  Post ReplyReply Direct Link To This Post Topic: How to get background color of TaskPanel control?
    Posted: 09 April 2007 at 10:43am
Hi,

I want to paint one frame with the same background color as task panel. I'm using CXTPTaskPanel class to create task panel. How do I get exact background color of bottom part of task panel?

Thanks.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2007 at 12:10am
Hello,
 
There is CXTPTaskPanelPaintManager::m_clrBackground property, but its protected :(
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 954
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2007 at 10:33am
Subclass from the painter and implement, e.g., GetBackground() and simply return the background member. The background is a struct that has a lite and dark color which can be directly accessed (public members).
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.059 seconds.