[Webinar] Streamline your web hosting managementRegister Today

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

How do you programmatically de-select a tree control item?

VC++ MFC CTreeCtrl: How do you programmatically de-select a tree control item? The solutions listed in the data base do not work for me...
0
DHamilton01
Asked:
DHamilton01
1 Solution
 
PriyeshCommented:
m_tree.SelectItem(NULL) ;
0
 
DHamilton01Author Commented:
When I execute this it de-selects the item but then selects the top most item showing in my tree. I've checked the properties for the control and don't see anything that would force this.

Any ideas?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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