Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - how to set  backcolor of  CXTPReportRecord
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to set backcolor of CXTPReportRecord

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


Joined: 20 August 2020
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote yangyanhui Quote  Post ReplyReply Direct Link To This Post Topic: how to set backcolor of CXTPReportRecord
    Posted: 19 November 2020 at 10:05pm
HI,I want to set the backcolor of a CXTPReportCtrl. If there is no items to show, the client area of the reportctrl will be white. I want to set a default color.Moreover,how can I hide the header of a reportctrl?
thanks
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Status: Offline
Points: 592
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 14 hours 54 minutes ago at 2:06am
I don' t know if I have misunderstood your problem, but normally you just set:
CXTPReportControl ctrlReport;
ctrlReport.ShowHeader(FALSE);
to hide the header part of the report control.

And the background can be controlled either by using the theme through
CXTPPaintManagerColor crBack;
crBack.SetStandardValue(XTPIniColor(_T("ReportControl"), _T("ControlBack"), RGB(253, 253, 253)));
or directly using:
ctrlReport.GetPaintManager()->m_clrControlBack= RGB(68, 68, 68);

Product: Xtreme ToolkitPro (19.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.109 seconds.