[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 160
  • Last Modified:

How to know which item in treeview control was clicked?

Hiya,
  When people are clicking around on my tree view control, how do I check which item they had clicked on?

Thanks,
  jer
0
pipe
Asked:
pipe
1 Solution
 
mikeblasCommented:
Trap the TVN_SELCHANGED notification.

The NMTREEVIEW pointer you get has itemOld and itemNew members. Those members are TVITEM structures that describe the previously selected and newly selected items, respectively.

..B ekiM
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now