INF: Creating a List Box with No Vertical Scroll Bar

ID Number: Q68115

2.00 2.03 2.10 3.00

WINDOWS

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

Additional reference words: 2.00 2.03 2.10 3.00 2.x