Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - how to edit in-place button item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to edit in-place button item

 Post Reply Post Reply
Author
Message
juwei View Drop Down
Newbie
Newbie


Joined: 28 January 2008
Location: China
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote juwei Quote  Post ReplyReply Direct Link To This Post Topic: how to edit in-place button item
    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)
 {
 }
}
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.172 seconds.