Scrolling a tree view
-
I have a tree view that has some drag and drop features however i would like to cuase the tree to scroll when the user drags item to the bottom of the tree does how do i cuase the tree view to scroll ? on a side not i want to be able to handle multiple popup menu clicks in 1 function within the tree view how would i determine what menu item was clicked? and is there a function that already exists that i can use?
-
I have a tree view that has some drag and drop features however i would like to cuase the tree to scroll when the user drags item to the bottom of the tree does how do i cuase the tree view to scroll ? on a side not i want to be able to handle multiple popup menu clicks in 1 function within the tree view how would i determine what menu item was clicked? and is there a function that already exists that i can use?
1- I think the way to do this is to add a timer and manually scroll the tree view.( I might be wrong) but I don't know how to do it right now. 2- you can use the ON_COMMAND_RANGE() message to send multiple commands to a single function, the handler receives the ID as a parameter; but you need to have the IDs consecutive, which can be dangerous in the long run; it is preferable to have one handler for each menu entry and from each function, call one other function. If you are using popup menu with TrackPopupMenu, you can have tre function return which menu item you clicked.
Maximilien Lincourt "Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )