Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Offer Har
|
Mar 26, 2007 - 6:35 PM
|
Dear Support,
I need to know when the user collapse/expand a node in the tree. I override OnTreeGridToggleItemExpandedState, but i have two problems with it: 1) It gives me a row number, and not an HTREEITEM - how do I get HTREEITEM from row number? 2) It always gives me in nAction TVE TVE_TOGGLE, no matter if I collapse or expand. Why is this?
Thanks, Ron.
|
|
Suhai Gyorgy
|
Mar 27, 2007 - 2:33 AM
|
HTREEITEM hTreeItem = ItemGetByVisibleRowIndex( nRowNo ); OnTreeGridToggleItemExpandedState is called from one single place in Prof-UIS source code, with the default TVE_TOGGLE as 3rd parameter. But you could check the state with ItemIsExpanded(hTreeItem); before or after calling base-class method.
|
|