GetTopMenuInfoString Function

Retrieves the info string of a top menu item.

int GetTopMenuInfoString(Handle topmenu, TopMenuObject parent, char[] buffer, int maxlength)

Parameters

Handle topmenu

TopMenu Handle.

TopMenuObject parent

TopMenuObject ID.

char[] buffer

Buffer to store info string.

int maxlength

Maximum size of info string.

Return Value

Number of bytes written, not including the null terminator.

Errors

Invalid TopMenu Handle or TopMenuObject ID.