Hello...
I am working on a treeview control window and I would like to know how I can refresh the expand sign in front of it. If I add a new item into an existing item, the + sign do not show. I must double-click the item (expand it) for it to refresh...
Thanx...
|
Go4Expert Founder
|
![]() |
| 9Jan2009,10:26 | #2 |
|
There is a property where + sign is always shown and so you need to set that property
|
|
Newbie Member
|
|
| 9Jan2009,21:55 | #3 |
|
Is it a property or a style ? I'm using plain win32, not MFC...
I checked all the TVS_ and TVIF_ and none seems to be the right one... Guess it's back to digging in the MSDN doc... |
|
Light Poster
|
|
| 10Jan2009,09:14 | #4 |
|
No, it has nothing to do with the style.
Your code is just wrong. |
|
Go4Expert Founder
|
![]() |
| 10Jan2009,10:27 | #5 |
|
This code should help you.
Code:
HTREEITEM hitem = tree.InsertItem(_T("Shabbir"));
tree.InsertItem(_T("Another one"),hitem);
tree.Expand(hitem,TVE_EXPAND);
|

