Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ MFC CTreeCtrl.
Hello!
I need to get int position or item that highlighted in CTreeCtrl(HIGHLIGHTED!!! not selected, when I will be know which node is highlighted I could select item programatically).
I tried GetNextItem(NULL, TVGN_DROPHILITE)but this didn't help
Thanks a lot
Posted 7-Jan-13 3:15am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I think you want to call
TreeView_GetSelection(handle)
and you need to specify the handle for the control (ie. not NULL).
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Have you tried this CTreeCtrl::GetDropHilightItem[^]
  Permalink  
Comments
thomas_wingfield at 9-Jan-13 9:01am
   
Thanks all a lot for posting.I tried this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 7 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid