Skip to content

Treelist: Add a message(s) to get currently selcted item (or items) #81

Description

@dido2k

Hi, Martin.

I did not manage to find how to get the treelist selection. I am trying to get the clicked item on NM_DBLCLK notification.

  1. HTREEITEM hSelectedItem = TreeView_GetSelection(lpNmHdr->hwndFrom);
  2. int iPos = ListView_GetNextItem(lpNmHdr->hwndFrom, -1, LVNI_SELECTED | LVNI_FOCUSED);

But both methods don't work. Would you help a bit?

Kind Regards,
Diyan.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions