LbGetSel Function

Microchip Graphics Library

Microchip Graphics Library
LbGetSel Function
C
LISTITEM * LbGetSel(
    LISTBOX * pLb, 
    LISTITEM * pFromItem
);
Overview

This function searches for selected items from the list box. A starting position can optionally be given. If starting position is set to NULL, search will begin from the first item list. It returns the pointer to the first selected item found or NULL if there are no items selected.

Input Parameters
Input Parameters 
Description 
LISTBOX * pLb 
The pointer to the list box object. 
LISTITEM * pFromItem 
The pointer to the item the search must start from, if the pointer is NULL the search begins from the start of the items list. 
Returns

pointer to the selected item, NULL if there are no items selected

Preconditions

none

Side Effects

none

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved