Print Page | Close Window

How to set record backgroud color?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17054
Printed Date: 29 September 2024 at 7:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set record backgroud color?
Posted By: owyo
Subject: How to set record backgroud color?
Date 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.



Replies:
Posted By: GRLEX
Date Posted: 03 September 2010 at 4:19am
pRecord->GetItem(0)->SetBackgroundColor(RGB(245,245,245));



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net