Register a list item defined by AL_ListItem structure in the list resource.

Syntax

bool AL_AddListItem(
  LIST_HANDLE list,
  AL_ListItem *item
);

Parameters

list
[in] List handle
item
[in] A pointer to an AL_ListItem structure.

Return value

Returns true if the function succeeds, false otherwise.

Remarks

Duplicate the list item pointed by item in the list resource of the list handle specified by list.
The string specified in the listText member of the AL_ListItem structure is also duplicated in the list resource.

List items registered in the list resource are referenced by specifying an index namber starting from 0.

Please note that the list display is not updated just by adding a list item with this function.

Requirements

Header file:
lib.h
AdvancedMenu.h
Library file:
libAdvancedMenu.a
libSTARTUPOPH5000.a

See also

Last updated: 2020/10/13