Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Report Control Cell Border
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report Control Cell Border

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


Joined: 30 November 2017
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote umair Quote  Post ReplyReply Direct Link To This Post Topic: Report Control Cell Border
    Posted: 07 March 2018 at 4:05am
Hello,
How can change the border color of a cell in Report Control ?
Please help.
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (1) Thanks(1)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 07 March 2018 at 3:52pm
m_wndReport.GetPaintManager()->SetGridColor(RGB(255,0,0));
Back to Top
umair View Drop Down
Groupie
Groupie


Joined: 30 November 2017
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote umair Quote  Post ReplyReply Direct Link To This Post Posted: 07 March 2018 at 11:33pm
Thank You Oleksandr, the above logic will change all cell color in report control. But I want to change the color of a(or some) specific cell.
Back to Top
umair View Drop Down
Groupie
Groupie


Joined: 30 November 2017
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote umair Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2018 at 4:00am
Hello,
How can change the border color of a specific cell in Report Control ?
Please help.
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2018 at 6:00am
Hello,
It is impossible in current implementation. To implement this feature you need add some conditions to drawing common grid. And add some members to ReportRecordItem  to save desired borders. Also some conditions to drawing border between two cells which have borders with different types. Or change this joint border to one type. See this call stack:

CXTPReportSection::Draw() > CXTPReportControl::DrawRows() > CXTPReportRow::Draw() > CXTPReportRow::DrawItemGrid()

Regards,
 Oleksandr Lebed
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.156 seconds.