Solved

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

Posted on 2007-04-09
2
709 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

713 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