H-scrollbar: how set to left

The place for threads about version 1.x of TimoSoft ExplorerTreeView.
Post Reply
thVb6
Cadet
Posts: 7
Joined: 03 Sep 2009, 17:50

H-scrollbar: how set to left

Post by thVb6 »

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
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: H-scrollbar: how set to left

Post by TiKu »

Hi,

have a look at the SetScrollPos API function. Something like this:

Code: Select all

SetScrollPos ExplorerTreeView1.hWnd, SB_HORZ, 0, 1
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
thVb6
Cadet
Posts: 7
Joined: 03 Sep 2009, 17:50

Re: H-scrollbar: how set to left

Post by thVb6 »

Hi Tiku, works fine.
nPos seems to be measured in pixel?
yours TH
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: H-scrollbar: how set to left

Post by TiKu »

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.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Post Reply