Solved

TreeCtrl label edit

Posted on 1997-03-10
1
359 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
[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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa‚Ķ
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

737 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