How to control the panel by clicking on the treeview node scroll?
Time:09-17
Designed a window procedure, the left is a treeview, on the right is a panel, the panel in vertical arrangement many groupbox, each node name of the treeview with these same groupbox title, how to by clicking on the corresponding tree node, scroll to the corresponding groupbox place?
CodePudding user response:
Click on the node, to obtain the title, and then iterate over all groupbox title, find corresponding groupbox, get its top value, and then go to the appropriate location,