Solved

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

Posted on 2007-04-09
2
695 Views
Last Modified: 2013-12-03
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
Comment
Question by:DHamilton01
2 Comments
 
LVL 9

Accepted Solution

by:
Priyesh earned 500 total points
ID: 18880283
m_tree.SelectItem(NULL) ;
0
 

Author Comment

by:DHamilton01
ID: 18883795
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now