TreeView events

new topic     » topic index » view thread      » older message » newer message

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>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu