Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Syntax
#define GFX_GOL_ListBoxItemImageSet(pItem, pImage) (((GFX_GOL_LISTITEM *)pItem)->pImage =
pImage)
Returns
None.
Description
This function sets the image for a list box item.
Preconditions
Object must exist in memory.
Example
See GFX_GOL_ListBoxItemAdd() and GFX_GOL_ListBoxItemListGet() example.
Parameters
Parameters Description
pItem pointer to the list box item.
pImage pointer to the image resource.
Function
void GFX_GOL_ListBoxItemImageSet(
GFX_GOL_LISTITEM *pItem,
GFX_RESOURCE_HDR *pImage)
1.6.2.1.6.4 GFX_GOL_ListBoxItemListGet Macro
This function returns the pointer to the item list of the list box.
File
gfx_gol_list_box.h
Syntax
#define GFX_GOL_ListBoxItemListGet(pObject) \
((GFX_GOL_LISTITEM *)((GFX_GOL_LISTBOX *)pObject)->pItemList)
Returns
The pointer to the item list of the list box.
Description
This function returns the pointer to the item list of the list box.
Preconditions
Object must exist in memory.
Example
// assume:
// pLb is a initialized to a list box in memory
// myIcon is a valid image in memory
GFX_GOL_LISTITEM *pList, *pItem;
GFX_RESOURCE_HDR *pMyIcon = &myIcon;
pList = GFX_GOL_ListBoxItemListGet(pLb);
pItem = pList;
// set the image for all the items to myIcon
// set the last item image to NULL
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
203
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf