Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Case 1: The list box is set to multiple selection.
• The item pointed to by pItem will toggle the selection status.
Case 2: The list box is set to single selection.
• If the currently selected item is not the item pointed to by pItem, the currently selected item will toggle to not selected. The
item pointed to by pItem will then be set to selected.
• If the currently selected item is the same item pointed to by pItem, the selection status of that item will be set to not
selected.
The change in the item's selection status should be redrawn to reflect the changes.
Preconditions
Object must exist in memory.
Example
None.
Parameters
Parameters Description
pObject The pointer to the object.
pItem The pointer to the item that will have the selection status
changed.
Function
void GFX_GOL_ListBoxSelectionChange(
GFX_GOL_LISTBOX *pObject,
GFX_GOL_LISTITEM *pItem)
1.6.2.1.6.19 GFX_GOL_ListBoxSelectionGet Function
This function searches for selected items from the list box.
File
gfx_gol_list_box.h
Syntax
GFX_GOL_LISTITEM * GFX_GOL_ListBoxSelectionGet(GFX_GOL_LISTBOX * pObject, GFX_GOL_LISTITEM
* pFromItem);
Returns
The pointer to the first selected item found. NULL if there are no items selected.
Description
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 on the item list.
The function returns the pointer to the first selected item found or NULL if there are no items selected.
Preconditions
Object must exist in memory.
Example
None.
Parameters
Parameters Description
pObject The pointer to the object.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
216
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf