Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - GetSelectedItem()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GetSelectedItem()

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


Joined: 28 July 2003
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Paddy Quote  Post ReplyReply Direct Link To This Post Topic: GetSelectedItem()
    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
Back to Top
Paddy View Drop Down
Groupie
Groupie


Joined: 28 July 2003
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Paddy Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2007 at 10:59am
Solved 
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.157 seconds.