Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - can i retrieve the data by double click the report
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

can i retrieve the data by double click the report

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


Joined: 15 March 2007
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote fireflame Quote  Post ReplyReply Direct Link To This Post Topic: can i retrieve the data by double click the report
    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?
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2008 at 9:30am
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
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.125 seconds.