can i retrieve the data by double click the report |
Post Reply |
Author | |
fireflame
Groupie Joined: 15 March 2007 Status: Offline Points: 21 |
Post Options
Thanks(0)
Posted: 13 August 2008 at 12:24am |
I use virtual mode,i use the doubleclick function like following:void CEventBrowserView::OnReportItemDblClick(NMHDR *pNotifyStruct, LRESULT * result)
{ XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct; if(pItemNotify->pRow && pItemNotify->pRow->IsGroupRow() == FALSE) { CXTPReportRecordItemText* pRecordTitle; pRecordTitle = (CXTPReportRecordItemText*)pItemNotify->pRow->GetRecord()->GetItem(0); CString strPartOrClient = pRecordTitle->GetValue(); CString stra = strPartOrClient; } } the value i got is "",how can i get the value?
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hi;
Try to call GetCaption(0) instead of GetValue() |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
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 |