Print Page | Close Window

GetSelectedItem()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=6807
Printed Date: 22 November 2024 at 8:05am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GetSelectedItem()
Posted By: Paddy
Subject: GetSelectedItem()
Date Posted: 05 April 2007 at 8:33am
Hi all,

I have build a report looking similar like a CListCtrl in thumbnail mode.
Each item has a different "dataset".
Now I have the following problem:

I try to find a selected item in the "OnSelectionChanged(NMHDR * pNotifyStruct, LRESULT * /*result*/)" event.

If I selected another row together with another column I get this event twice:

- first the column will be changed
- second the row will be changed

Any idea how I would get only one event (checking if row has changed isn't a solution)?

I already tried checking the mouse position without success:

            DWORD pos = GetMessagePos();
            CPoint pt(LOWORD(pos), HIWORD(pos));
            m_wndReport.ScreenToClient(&pt);

            CXTPReportRow* theRow = m_wndReport.HitTest(pt);
....

Greets,

Patrik



Replies:
Posted By: Paddy
Date Posted: 05 April 2007 at 10:59am
Solved 



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