![]() |
GetSelectedItem() |
Post Reply ![]() |
Author | |
Paddy ![]() Groupie ![]() Joined: 28 July 2003 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Paddy ![]() Groupie ![]() Joined: 28 July 2003 Status: Offline Points: 15 |
![]() ![]() ![]() ![]() ![]() |
Solved
![]() |
|
![]() |
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 |