AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

ShowScrollbar

The ShowScrollBar function shows or hides the specified scroll bar.

VB4-32,5,6
Declare Function ShowScrollBar Lib "user32" (ByVal hwnd As Long, ByVal wBar As Long, ByVal bShow As Long) As Long

VB.NET
System.Windows.Forms.ScrollBar.Visible

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
User32

Parameter Information
· hWnd
[in] Handle to a scroll bar control or a window with a standard scroll bar, depending on the value of the wBar parameter.

· wBar
[in] Specifies the scroll bar(s) to be shown or hidden. This parameter can be one of the following values. Value Meaning
SB_BOTH
Shows or hides a window's standard horizontal and vertical scroll bars.
SB_CTL
Shows or hides a scroll bar control. The hWnd parameter must be the handle to the scroll bar control.
SB_HORZ
Shows or hides a window's standard horizontal scroll bars.
SB_VERT
Shows or hides a window's standard vertical scroll bar.

· bShow
[in] Specifies whether the scroll bar is shown or hidden. If this parameter is TRUE, the scroll bar is shown; otherwise, it is hidden.

Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Examples

Related Functions

No VB.NET Example Found

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/