Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Report coloring in Ribbon app
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report coloring in Ribbon app

 Post Reply Post Reply
Author
Message
Bart6 View Drop Down
Groupie
Groupie
Avatar

Joined: 22 March 2009
Location: Belgium
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bart6 Quote  Post ReplyReply Direct Link To This Post Topic: Report coloring in Ribbon app
    Posted: 07 April 2009 at 4:47am
Dear Support

I'm using the ReportControl in a Ribbon application, but i noticed that the coloring in the Report Control is not the same as for the Ribbon.



What is the recommended way of aligning the ReportControl painting to the Ribbon colors?
I could use pick the colors manually from the Ribbon PaintManager, but that doesn't feel right.

Thanks
Bart
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 08 April 2009 at 9:16am
CString csStylesPath(szStylesPath);
int nIndex = csStylesPath.ReverseFind(_T('\\'));
if (nIndex > 0) {
csStylesPath = csStylesPath.Left(nIndex);
}
else {
csStylesPath.Empty();
}

XTPOffice2007Images()->SetHandle(csStylesPath + _T("\\Styles\\Office2007Black.dll"), _T("OFFICE2007BLACK.INI"));
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.141 seconds.