How to set record backgroud color? |
Post Reply |
Author | |
owyo
Newbie Joined: 20 June 2010 Status: Offline Points: 9 |
Post Options
Thanks(0)
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.
|
|
GRLEX
Groupie Joined: 17 February 2009 Location: Ukraine Status: Offline Points: 27 |
Post Options
Thanks(0)
|
pRecord->GetItem(0)->SetBackgroundColor(RGB(245,245,245));
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |