• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

Simple question: with CTreeView is there a way to select nothing? (no folder, no top level, nada)

Hi,

Title says it all...  I really hope so.  

oh, and if so how...


Nasa
0
nasa
Asked:
nasa
1 Solution
 
AlexFMCommented:
Try CTreeCtrl::SelectItem(NULL)
0
 
lakshman_ceCommented:
Try pTreeCtrl->SetItemState( hItem, 0, TVIS_SELECTED );


-Lakshman
0
 
nasaAuthor Commented:
Thanks go to both of you for your replies.

AlexFM --- don't know why I never thought of that, but your solution fit right into my code

Thanks again


Nasa
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

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