Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - How to set record backgroud color?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to set record backgroud color?

 Post Reply Post Reply
Author
Message
owyo View Drop Down
Newbie
Newbie
Avatar

Joined: 20 June 2010
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote owyo Quote  Post ReplyReply Direct Link To This Post Topic: How to set record backgroud color?
    Posted: 03 August 2010 at 2:21am

I use the below method to add some records, how to set the record backgroud to RGB(245, 245, 245).

========================================================  
while(...){
   CXTPReportRecord* pRecord = m_wndReport.AddRecord(new CXTPReportRecord());
    if(NULL == pRecord) break;
    pRecord->AddItem(new CXTPReportRecordItemText(it->first.c_str()));
    m_wndReport.SetRedraw();
    m_wndReport.Populate();
}
========================================================
Thanks very much.
Back to Top
GRLEX View Drop Down
Groupie
Groupie
Avatar

Joined: 17 February 2009
Location: Ukraine
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote GRLEX Quote  Post ReplyReply Direct Link To This Post Posted: 03 September 2010 at 4:19am
pRecord->GetItem(0)->SetBackgroundColor(RGB(245,245,245));
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.125 seconds.