Solved

TreeCtrl label edit

Posted on 1997-03-10
1
324 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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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 explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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