Print Page | Close Window

CXTPColorManager has quit working!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=672
Printed Date: 24 December 2024 at 9:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPColorManager has quit working!
Posted By: ddlittle
Subject: CXTPColorManager has quit working!
Date 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

 




Replies:
Posted By: Oleg
Date 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


Posted By: ddlittle
Date Posted: 29 April 2004 at 10:39am
Thanks!  Works great....



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