Solved

TreeCtrl label edit

Posted on 1997-03-10
1
343 Views
Last Modified: 2013-11-20
I have two splitter panes each containing a tree control. The problem is that when I select an item in the first tree then go and select an item in the second tree, then go back to the same item in the first tree the edit label control opens. How do I prevent this from happening and still retain label edit in each of the slitter panes. Also I don't specify the TVS_SHOWSELALWAYS style when I create the tree control.
0
Comment
Question by:angusross
1 Comment
 

Accepted Solution

by:
rhg earned 150 total points
ID: 1300595
The label edit control opens if an item is selected and you
click it once again. What you describe can only happen if
the item remains selected when you change focus to the other
pane. When you create the tree controls, you have specified
the TVS_SHOWSELALWAYS style, and this is the reason why your
controls behave as you described. Just remove the
TVS_SHOWSELALWAYS style and your problem will be solved.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
function returning CString in a regular win32 DLL 8 176
no14 challenge 14 66
zeroMAx challenge 20 99
changeXy challenge 13 81
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

816 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

9 Experts available now in Live!

Get 1:1 Help Now