Print Page | Close Window

Assert after changing color in GetItemMetrics

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=13959
Printed Date: 03 November 2024 at 8:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Assert after changing color in GetItemMetrics
Posted By: inmaurik
Subject: Assert after changing color in GetItemMetrics
Date Posted: 09 April 2009 at 4:32am
In a derived version of CXTPReportRow::GetItemMetrics I am changing the foreground color (clrForeground). The result is however that an assert is raised in CXTPReportRecordItem::Draw because the foreground color is not the default.

Is it correct that I can change the foreground color to a non-default color or is there another way.


ASSERT(pMetrics->clrForeground != XTP_REPORT_COLOR_DEFAULT);


-------------
Product: Xtreme SuitePro (MFC) version 13.3.1
Platform: Windows 7 Enterprise (64bit)
Language: C++ (Visual Studio 2008 SP1)



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