TreeView events
- Posted by Tyler Southwick <wick900 at operamail.com> Dec 11, 2001
- 537 views
I have a treeview that i need to capture the expanding of a treeview child. I have it set up to capture the expanding, but I don't know how I can figure out which of the treeview items caused the expanding. 'hitTestTV' does not work if the plus box is clicked next to the item <code> procedure myNotify(atom iMsg, atom wParam, atom lParam) atom lNewMsg, tvId, VOID integer id sequence dirData, currDir -- Only look at NOTIFY messages if iMsg = WM_NOTIFY then -- Get which notify message it is. lNewMsg = fetch( lParam, NMHDR_code ) -- Get which control sent it. id = getId( fetch(lParam, NMHDR_hwndFrom ) ) --use the ID in any way end if end procedure </code>