Horizontal Scrolling of TreeView 
Author Message
 Horizontal Scrolling of TreeView

Quote:
> I would love for someone to tell me how I can get a TreeView control to
> scroll horizontally so that the topmost level icons will show.  

Declarations:
Public Const SB_PAGELEFT = 2
Public Const WM_HSCROLL = &H114
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd
As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

Code:
SendMessage TreeView.hwnd, WM_HSCROLL, SB_PAGELEFT, TreeView.hwnd

Hope this helps
Michael Cody



Tue, 07 Mar 2000 03:00:00 GMT  
 Horizontal Scrolling of TreeView

I would love for someone to tell me how I can get a TreeView control to
scroll horizontally so that the topmost level icons will show.  Setting
Node.Root.EnsureVisible only scrolls the tree so that the text of the
uppermost node shows, not its icon.  Setting the scroll bar thumb all the
way to the left is all that I require.  I want to be able to do this
without redrawing the entire tree.

I've started hunting around for information on GetScrollInfo and
SetScrollInfo API calls but have not found any indication that these can be
successfully called from VB5 or if they will work with the TreeView
control.

Thank you in advance for your assistance

--
James Milne



Tue, 07 Mar 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Program control of horizontal scrolling of treeview

2. Horizontal scrolling in TreeView Control

3. Horizontal Scrolling of TreeView

4. VB.Net: Horizontal Scroll Bar In TreeView

5. TreeView horizontal scroll bar

6. Treeview horizontal scrolling

7. Horizontal Scroll Bar in ListBox

8. get rid of/hide the horizontal scroll bar in a listview

9. Horizontal Scroll VBX

10. VB4, list boxes, and horizontal scroll bars CHALLENGE!

11. MDI form and horizontal scrolling

12. Horizontal scroll bar in a Text Box?

 

 
Powered by phpBB® Forum Software