how to edit in-place button item |
Post Reply |
Author | |
juwei
Newbie Joined: 28 January 2008 Location: China Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 03 April 2008 at 2:26am |
I inherit the class CXTPReportRecordItem in order to realize in-place button. But how do I edit this item? class CReportButtonItem:public CXTPReportRecordItem
{ public: CReportButtonItem(CString str_TemplateName) { GetEditOptions(NULL)->m_bConstraintEdit = TRUE; GetEditOptions(NULL)->AddConstraint(_T(str_TemplateName), 0); GetEditOptions(NULL)->AddExpandButton(); } CString GetCaption(CXTPReportColumn* /*pColumn*/)
{ int i = 0; CXTPReportRecordItemConstraint* pConstraint = GetEditOptions(NULL)->FindConstraint(i); ASSERT(pConstraint); return pConstraint->m_strConstraint; } virtual void OnInplaceButtonDown(CXTPReportInplaceButton* pButton)
{ } }
|
|
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 |