[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

TreeCtrl label edit

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
angusross
Asked:
angusross
1 Solution
 
rhgCommented:
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now