INF: Creating a List Box That Does Not Sort

ID Number: Q68116

2.00 2.03 2.10 3.00

WINDOWS

Summary:

A Windows list box with the LBS_STANDARD style will sort the list of

items into alphabetical order before displaying them in the control.

To create a list box that will not sort, you must remove the LBS_SORT

bit from the window style. The following style specification removes

this bit:

(LBS_STANDARD | LBS_HASSTRINGS) & ~LBS_SORT

Additional reference words: 2.00 2.03 2.10 3.00 2.x