Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Get ReportRecord under mouse cursor
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Get ReportRecord under mouse cursor

 Post Reply Post Reply
Author
Message
SMaton View Drop Down
Groupie
Groupie


Joined: 04 May 2009
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote SMaton Quote  Post ReplyReply Direct Link To This Post Topic: Get ReportRecord under mouse cursor
    Posted: 08 May 2009 at 8:24am
Hi,

via the HitTest function of CXTPReportControl I get a CXTPReportRow. I *know* that right at the position there is a valid entry and I get a valid ReportRow pointer.

Now, I would like to get the ReportRecord associated with that ReportRow, but I get a NULL pointer for whatever entry I click on. I must add that this only happens when I have grouped the entries via CXTPReportControl->GetColumns->GetGroupsOrder->Add().

When not grouping, I get a valid ReportRecord pointer.

Could anyone tell me what to do to achieve the same behaviour when the report is grouped by columns?

Thanks,
Stefan

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