Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Assert after changing color in GetItemMetrics
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Assert after changing color in GetItemMetrics

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


Joined: 13 July 2007
Location: Netherlands
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote inmaurik Quote  Post ReplyReply Direct Link To This Post Topic: Assert after changing color in GetItemMetrics
    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)
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.109 seconds.