Solved

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

Posted on 2004-04-02
3
202 Views
Last Modified: 2013-11-20
Hi,

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

oh, and if so how...


Nasa
0
Comment
Question by:nasa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 50 total points
ID: 10742399
Try CTreeCtrl::SelectItem(NULL)
0
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 10742432
Try pTreeCtrl->SetItemState( hItem, 0, TVIS_SELECTED );


-Lakshman
0
 
LVL 1

Author Comment

by:nasa
ID: 10757405
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

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

733 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