|  | 
| Wish for CXTPReportRecordItem::Draw | 
| Post Reply   | 
| Author | |
| jimmy   Senior Member   Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |  Post Options  Thanks(0)  Quote  Reply  Topic: Wish for CXTPReportRecordItem::Draw 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 | |
|  | |
| mgampi   Senior Member     Joined: 14 July 2003 Status: Offline Points: 1210 |  Post Options  Thanks(0)  Quote  Reply  Posted: 07 October 2010 at 5:02am | 
| 
   Hi; You can use GetItemMetrics() instead! | |
| 
     Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 | |
|  | |
| jimmy   Senior Member   Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |  Post Options  Thanks(0)  Quote  Reply  Posted: 07 October 2010 at 5:34am | 
| 
   But i can use this, if i will draw a gradient background. Jimmy | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |