Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Wish for CXTPReportRecordItem::Draw
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Wish for CXTPReportRecordItem::Draw

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2010 at 5:34am
But i can use this, if i will draw a gradient background.

  Jimmy

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.