Link to home
Start Free TrialLog in
Avatar of tradinfo
tradinfo

asked on

problems with inserting items in CTreeView

Hi,
I have 2 little problems with CTreeView:

1. I want to give focus to an item when I right click
   I use in the OnRButtonDown the following code
        myTree.Select(htItem, TVGN_DROPHILITE);
   The htItem is selected (inverse video) but the focus is not set to this item...
Any idea on how to give focus to it ?

2. How can I insert an item just after the selected item, not in the beginning, in last position, or in sorted position ??? This is strange to me, how can I insert this just before, or just after the selected item ???

Thanks all
ASKER CERTIFIED SOLUTION
Avatar of migel
migel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial