Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How can I get the changed value?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can I get the changed value?

 Post Reply Post Reply
Author
Message
Wisebee View Drop Down
Newbie
Newbie
Avatar

Joined: 06 April 2006
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wisebee Quote  Post ReplyReply Direct Link To This Post Topic: How can I get the changed value?
    Posted: 09 May 2006 at 11:20pm

Hi.
Please excuse my poor english.

I try to edit an RecordItem's caption in my CJDataReportView class derived from CXTPReportView.
The code is below.

void CJDataReportView::OnReportItemClick(NMHDR * pNotifyStruct, LRESULT * result)
{
XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;
CXTPReportControl& wndReport = GetReportCtrl();
XTP_REPORTRECORDITEM_ARGS args(&wndReport, pItemNotify->pRow, pItemNotify->pColumn);
wndReport.EditItem(&args);
}

So like that, I can write over some text. But the problem is I can't get the value changed by InplaceEdit.

What can I do to get the value changed by InplaceEdit?
Do I handle XTP_NM_REPORT_VALUECHANGED message to get it?
(If so, what method or attribute gives the changed value?)

Be fun~
Back to Top
Wisebee View Drop Down
Newbie
Newbie
Avatar

Joined: 06 April 2006
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wisebee Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2006 at 5:49am
CXTPReportControl::GetInplaceEdit()
Be fun~
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2006 at 3:55pm
Yep, that's a useful method

However, if you'd like just to catch the changed value of the cell, handling XTP_NM_REPORT_VALUECHANGED would be the best idea. Please look help topic on this. It has an example how to get a new value:

void CPropertiesView::OnReportValueChanged(NMHDR*  pNotifyStruct, LRESULT* /*result*/)
{
    XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;
//...
   CRecordPropertyInt::GetValue(pItemNotify)


--
WBR,
Serge
Back to Top
g_j_a_i_n View Drop Down
Groupie
Groupie
Avatar

Joined: 27 August 2005
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote g_j_a_i_n Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2006 at 2:49am

Thanks :)
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.031 seconds.