Print Page | Close Window

Wish for CXTPReportRecordItem::Draw

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=17390
Printed Date: 29 September 2024 at 7:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Wish for CXTPReportRecordItem::Draw
Posted By: jimmy
Subject: Wish for CXTPReportRecordItem::Draw
Date Posted: 07 October 2010 at 3:40am
Hello,

i wish that the function
CXTPReportRecordItem::Draw
call a own function for background drawing.

CXTPReportRecordItem::DrawBackground(CDC *pDC, XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, CRect& rcItem)
{
    if (pMetrics->clrBackground != XTP_REPORT_COLOR_DEFAULT)
        pDC->FillSolidRect(rcItem, pMetrics->clrBackground);
}

and make this function virtual.

 greetings
    Jimmy



Replies:
Posted By: mgampi
Date Posted: 07 October 2010 at 5:02am
Hi;

You can use GetItemMetrics() instead!


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: jimmy
Date Posted: 07 October 2010 at 5:34am
But i can use this, if i will draw a gradient background.

  Jimmy




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