OnReportSelChanged doesn't seem to have valid row |
Post Reply |
Author | |
drisch
Groupie Joined: 06 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
Posted: 25 August 2006 at 11:34am |
Hi, I am using a message handler for XTP_NM_REPORT_SELCHANGED and interpreting the passed in value as a XTP_NM_REPORTRECORDITEM. Though the pItemNotify->pRow and pItemNotify->pColumn are not null, they also don't seem to be rows or columns as I get a crash any time I try to do something with these pointers such as calling GetIndex() as below:
Is this a bug with the toolkit or am I doing something wrong? (I am using v9.81.) Thanks, Derek |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi Derek,
It's actually a bug in the documentation. Actually on this notification you only receive pointer to a regular NMHDR structure, not to XTP_NM_REPORTRECORDITEM. So far this type conversion is not allowed. This is so because after changing a selection, it could be simply accessed via GetSelectedRows() method of the Report control. -- WBR, Serge |
|
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 |