Microsoft KB Archive/68115

{| = HOWTO: Create a List Box with No Vertical Scroll Bar =
 * width="100%"|

Article ID: Q68115

The information in this article applies to:
 * Microsoft Windows Software Development Kit (SDK)
 * Microsoft Win32 Application Programming Interface (API)

SUMMARY
A Windows list box with the LBS_STANDARD style will display a vertical scroll bar if there are more items in the list than can be displayed in the client area of the list box.

To create a list box that will not use a vertical scroll bar, you must remove the WS_VSCROLL bit from the window style. The following style specification removes this bit:

(LBS_STANDARD | LBS_HASSTRINGS) & ~WS_VSCROLL Keywords         : kbCtrl kbListBox kbGrpUser Issue type       : kbhowto
 * }