Jonathan Potter
2006-12-13 01:57:51 UTC
Hi,
I have been trying to use the new Vista Tree-View control extended style
TVS_EX_AUTOHSCROLL.
While this does work fine, there is a problem in that there seems to be no
way to discover the current horizontal scroll offset of the tree.
Normally when the tree has a scrollbar one can use GetScrollPos() to
discover the current scroll offset, but this fails if there is no scrollbar.
I need to know the scroll offset because I am doing custom drawing in the
tree.
Is there an (undocumented) way of discovering the horizontal scroll offset?
Thanks,
Jonathan Potter
GP Software
I have been trying to use the new Vista Tree-View control extended style
TVS_EX_AUTOHSCROLL.
While this does work fine, there is a problem in that there seems to be no
way to discover the current horizontal scroll offset of the tree.
Normally when the tree has a scrollbar one can use GetScrollPos() to
discover the current scroll offset, but this fails if there is no scrollbar.
I need to know the scroll offset because I am doing custom drawing in the
tree.
Is there an (undocumented) way of discovering the horizontal scroll offset?
Thanks,
Jonathan Potter
GP Software