Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [SOLVED] Question on sample ReportCustomDraw
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Question on sample ReportCustomDraw

 Post Reply Post Reply
Author
Message
dalai View Drop Down
Groupie
Groupie


Joined: 07 January 2011
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote dalai Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] Question on sample ReportCustomDraw
    Posted: 10 March 2012 at 5:42am
I subscribe to 1521-MFC-TOOLKITPRO and looking at sample ReportCustomDraw
 
which adds 10 records
BOOL CCustomDrawReportDlg::OnInitDialog()
for(int i = 0; i < 10; i++)
{
m_wndReportCtrl.AddRecord(new CMessageRecord(strName, 4, i ...
}
 
and several items are added
CMessageRecord::CMessageRecord()
AddItem(new CXTPReportRecordItemText(strName));
m_pItemAttr1 = (CMessageRecordItemCheckGroup*)AddItem(new MessageRecordItemCheckGroup
m_pItemAttr2 = (CMessageRecordItemRadioGroup*)AddItem(new CMessageRecordItemRadioGroup
m_pItemAttr3 = (CXTPReportRecordItemProgress*)AddItem(new CXTPReportRecordItemProgress
 
but I can't figure out how MessageRecordItemCheckGroup creates the checkboxes?
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2012 at 10:06am
Hi,

add CXTPReportRecordItemText item and then call HasCheckbox(TRUE); and SetChecked(TRUE/FALSE);

Andre

Codejock support
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.188 seconds.