Print Page | Close Window

Help with CXTPReportRecordItemVariant

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1534
Printed Date: 07 November 2025 at 1:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Help with CXTPReportRecordItemVariant
Posted By: mhamsa
Subject: Help with CXTPReportRecordItemVariant
Date 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...




Replies:
Posted By: Oleg
Date 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


Posted By: mhamsa
Date 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...



Posted By: mhamsa
Date 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);

};




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net