Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Preconditions
Object must exist in memory.
Example
const GFX_XCHAR ItemList[] = "Line1n" "Line2n" "Line3n";
extern GFX_RESOURCE_HDR myIcon;
GFX_GOL_LISTBOX *pLb;
GFX_GOL_LISTITEM *pItem, *pItemList;
GFX_XCHAR *pTemp;
// Assume that pLb is pointing to an existing list box in memory
// that is empty (no list).
// Create the list of the list box
// Initialize this to NULL to indicate that items will be added
// at the end of the list if the list exist on the list box or
// start a new list if the list box is empty.
pItem = NULL;
pTemp = ItemList;
pItem = GFX_GOL_ListBoxItemAdd(
pLb,
pItem,
pTemp,
NULL,
LB_STS_SELECTED,
1);
if(pItem == NULL)
return 0;
GFX_GOL_ListBoxImageSet(pItem, &myIcon);
// Adjust pTemp to point to the next line
while((uint16_t)*pTemp++ > (uint16_t)31);
// add the next item
pItem = GFX_GOL_ListBoxItemAdd(
pLb,
pItem,
pTemp,
NULL,
0,
2)
if(pItem == NULL)
return 0;
GFX_GOL_ListBoxImageSet(pItem, &myIcon);
// Adjust pTemp to point to the next line
while((uint16_t)*pTemp++ > (uint16_t)31);
// this time insert the next item after the first item on the list
pItem = LbGetItemList(pLb);
pItem = GFX_GOL_ListBoxItemAdd(
pLb,
pItem,
pTemp,
NULL,
0,
3)
if(pItem == NULL)
return 0;
GFX_GOL_ListBoxImageSet(pItem, &myIcon);
Parameters
Parameters Description
pObject Pointer to the object.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
212
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf