[SOLVED] Question on sample ReportCustomDraw |
Post Reply |
Author | |
dalai
Groupie Joined: 07 January 2011 Status: Offline Points: 36 |
Post Options
Thanks(0)
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?
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Hi,
add CXTPReportRecordItemText item and then call HasCheckbox(TRUE); and SetChecked(TRUE/FALSE); Andre |
|
Codejock support
|
|
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 |