An application sends an LB_GETANCHORINDEX message to retrieve the index of the anchor item—that is, the item from which a multiple selection starts. A multiple selection spans all items from the anchor item to the caret item.
LB_GETANCHORINDEX
wParam = 0; // not used; must be zero
lParam = 0; // not used; must be zero
This message has no parameters.
The return value is the index of the anchor item.
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_SETANCHORINDEX