Share via


LB_GETSELITEMS (Compact 2013)

3/28/2014

This message is sent by an application to fill a buffer with an array of integers that specify the item numbers of selected items in a multiple-selection list box.

Syntax

LB_GETSELITEMS wParam = (WPARAM) cItems; 
    lParam = (LPARAM)(LPINT) lpnItems;

Parameters

  • cItems
    Specifies the maximum number of selected items whose item numbers are to be placed in the buffer.
  • lpnItems
    Long pointer to a buffer large enough for the number of integers specified by the cItems parameter.

Return Value

The return value is the number of items placed in the buffer. If the list box is single-selection, the return value is LB_ERR. This message will also return LB_ERR if you pass invalid parameters for a multi-selection list box.

Requirements

Header

winuser.h

See Also

Reference

List Box Messages
LB_GETSELCOUNT