Hi,
sometimes, when setting long treeview paths, the H-Scrollbar turns away from left side, so that the treeview vertically is shown somewhere in middle.
How is it possible, to set the scrollbar to the left stop position?
Thanks in advance!
TH
H-scrollbar: how set to left
Re: H-scrollbar: how set to left
Hi,
have a look at the SetScrollPos API function. Something like this:
TiKu
have a look at the SetScrollPos API function. Something like this:
Code: Select all
SetScrollPos ExplorerTreeView1.hWnd, SB_HORZ, 0, 1
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!
Re: H-scrollbar: how set to left
Hi Tiku, works fine.
nPos seems to be measured in pixel?
yours TH
nPos seems to be measured in pixel?
yours TH
Re: H-scrollbar: how set to left
Yes, this should be pixels.
By the way, have you tried setting the AutoHScroll property to False? Maybe you don't need the API call.
By the way, have you tried setting the AutoHScroll property to False? Maybe you don't need the API call.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!