sItemStart (SHORT)

      Index of the start item.

      If the list box allows multiple selected items, that is, if it has a style of LS_MULTIPLESEL, then this parameter indicates the index of the item from which the search for the next selected item is to begin. Therefore, to get all the selected items of the list, this message is sent repeatedly, each time setting this parameter to the index of the item returned by the previous usage of this message.

      If this parameter is set to LIT_CURSOR the index of the item in the list box which currently has the cursor is returned.

      If the list box only allows a single selection, this parameter is ignored.

      LIT_CURSOR

        Return the index of the item in the list box which currently has the cursor.
      LIT_FIRST
        Start the search at the first item.
      Other
        Start the search after the item specified by this index.

      ulReserved (ULONG)

        Reserved value, should be 0.

      sItemSelected (SHORT)

        Index of the selected item.

        LIT_NONE

          No selected item.

          For a single selection list box, this implies that there is no selected item in the list box. For a multiple selection list box, this implies that there is no selected item in the list box whose index is higher than the index specified by the sItemStart parameter.

        Other
          Index of selected item. For a single selection list box, this is the index of the only selected item in the list box. For a multiple selection list box, this is the index of the next selected item in the list box whose index is higher than the index specified by the sItemStart parameter.

          If sItemStart is set to LIT_CURSOR, the index of the list-box item which currently has the cursor is returned.


        [Back] [Next]