Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

I think you want to call
TreeView_GetSelection(handle)
and you need to specify the handle for the control (ie. not NULL).
 
Share this answer
 
Have you tried this CTreeCtrl::GetDropHilightItem[^]
 
Share this answer
 
Comments
thomas_wingfield 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900