Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Help with CXTPReportRecordItemVariant
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help with CXTPReportRecordItemVariant

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


Joined: 15 December 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mhamsa Quote  Post ReplyReply Direct Link To This Post Topic: Help with CXTPReportRecordItemVariant
    Posted: 15 December 2004 at 2:44pm
I'm having some trouble using CXTPReportRecordItemVariant - it doesn't appears to be definied. I've checked the XTPReportRecordItemText.h header the definition looks valid but the code doesn't compile.

Compiler Error:

error C2065: 'CXTPReportRecordItemVariant' : undeclared identifier

 

Thanks, mike...

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2004 at 5:40am

Sorry it used in ActiveX version only.

You can copy code of CXTPReportRecordItemVariant(XTPReportRecordItemText.h) to your application.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mhamsa View Drop Down
Newbie
Newbie


Joined: 15 December 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mhamsa Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2004 at 8:21am

Thanks,

I'm really trying to do something similar to "CListCtrl::SetItemData" so that I can associate some arbitrary object handle/pointer to a record in the record control. What's the best way to do this?

mike...

Back to Top
mhamsa View Drop Down
Newbie
Newbie


Joined: 15 December 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mhamsa Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2004 at 12:01pm

I went ahead and subclassed CXTPReportRecord and added a few "extras" to it so that I could store some item data on the record.

class CDataReportRecord : public CXTPReportRecord

{

DECLARE_DYNAMIC(CDataReportRecord)

public:

CDataReportRecord(DWORD dwRecordData);

virtual ~CDataReportRecord();

private:

DWORD m_dwRecordData;

protected:

DECLARE_MESSAGE_MAP()

public:

DWORD GetItemData(void);

};

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.046 seconds.