Solved

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

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

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.

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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 how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

809 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