Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPReportView
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPReportView

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

Joined: 22 July 2005
Location: United States
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hazelnut Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportView
    Posted: 02 September 2005 at 12:37pm

Hello All,

Is it possible to 1) change the color of the header columns, and 2) set the alignment of those columns?

I'm trying to center some of the column headings.  I can center some of the columns by using the following code, but is it possible to do the same for the headings?

wndReport.GetColumns()->GetAt(RPT_COL_INCLUDE)->SetAlignment(DT_CENTER);

wndReport.GetColumns()->GetAt(RPT_COL_TEST)->SetAlignment(DT_LEFT);

wndReport.GetColumns()->GetAt(RPT_COL_LOOPS)->SetAlignment(DT_CENTER);

wndReport.GetColumns()->GetAt(RPT_COL_STATUS)->SetAlignment(DT_CENTER);

Thanks!

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2005 at 8:45am
Hi,

For Header text alignment see CXTPReportPaintManager::m_bUseColumnTextAlignment

You cannot change colors for individual columns, only for all: CXTPReportPaintManager::m_clrCaptionText

Use m_clrCaptionText.SetCustomValue() method.

--
WBR,
Serge
Back to Top
Hazelnut View Drop Down
Groupie
Groupie
Avatar

Joined: 22 July 2005
Location: United States
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hazelnut Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2005 at 10:49am

Hi,

Thank you, both suggestions worked perfectly!

...I should have checked the documentation before posting, but I do appreciate the help

Regards,

Paul...

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.047 seconds.