Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPColorManager has quit working!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPColorManager has quit working!

 Post Reply Post Reply
Author
Message
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Topic: CXTPColorManager has quit working!
    Posted: 28 April 2004 at 5:35pm

In my 8.61 code, I could rely on this code to retrieve the nice Office/2003 colors:

 CXTPColorManager *pClrMgr = XTPColorManager();
 COLORREF rgbBkColor = pClrMgr->GetColor(XPCOLOR_3DFACE);

I used that color in OnEraseBkgnd() to PatBlt the nice blue color behind the Property Grid embedded on a CFormView inside a pane.  Now, the color that it returns is some shade of gray (It's really RGB(236,233,216), but close enough). 

Anybody know what might have happened?  Do I need to init XTPColorManager somewhere?  I tried RefreshColors(), but get the same things.

Help! 

Thanks!

- David Little

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 29 April 2004 at 9:53am

to support multiple frames with different colors, colors moved to Paint Manager:

XTPPaintManager()->GetXtremeColor(XPCOLOR_3DFACE);

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2004 at 10:39am
Thanks!  Works great....
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.158 seconds.