An application sends an LB_SELITEMRANGE message to select one or more consecutive items in a multiple-selection list box.
LB_SELITEMRANGE
wParam = (WPARAM) (BOOL) fSelect; // selection flag
lParam = MAKELPARAM(wFirst, wLast); // first and last items
If an error occurs, the return value is LB_ERR.
Use this message only with multiple-selection list boxes.
This message can select a range only within the first 65,536 items.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
List Boxes Overview, List Box Messages, LB_SELITEMRANGEEX, LB_SETSEL