|
-
October 27th, 2005, 11:41 PM
#1
Get index of an item in a TreeCtrl
Hi,
I have a treectrl as shown below
- Root1
|
----- - A
| |
| ----- A1
|
----- B
|
----- C
+ Root2
+ Root3
Here there are three levels.
1. Root level ( Root1, Root2 and Root3)
2. Child first level( A, B and C) and
3. Child second level( A1)
My requirement is, when I am selecting I wantto get the index of that item in its level.
For eg: If I select Root2 or B, I want to get the index as 2
If I select Root1 or A1, I want to get the index as 1
If u have any idea pls help
Ajay
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|