GetTopMenuObjName Function

Retrieves the name string of a top menu item.

int GetTopMenuObjName(Handle topmenu, TopMenuObject topobj, char[] buffer, int maxlength)

Parameters

Handle topmenu

TopMenu Handle.

TopMenuObject topobj

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.