How To Detect If Scroll Bars Are Visible on a Control (299686)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
This article was previously published under Q299686 SUMMARY
Controls such as RichTextBox, TreeView, ListView, ListBox, DirListBox, and FileListBox do not offer built-in functionality to determine if a horizontal or vertical scroll bar is currently visible. This article demonstrates how to retrieve window style information about the control that can be used to determine if scroll bars are visible.
REFERENCES
For more information on the GetWindowLong function that is used in this article, see the MSDN Library CD or the Win32 Software Development Kit (SDK) Programmer's Guide.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbAPI kbCmnCtrls kbhowto kbListView kbTreeView KB299686 |
---|
|