EtsT_Nt_Menu_Select_Callback
Note: Requires OPNET Development Kit
Abstract
Callback: Used to act on a selected menu item.
Syntax
EtsT_Nt_Menu_Select_Callback (obj_handle, selection_text, define_state_ptr)
| Argument | Type | Description |
|---|---|---|
obj_handle |
EtsT_Obj_Handle |
Object that was clicked on |
selection_text |
const char * |
Text of the menu item selected by the user |
define_state_ptr |
void * |
Return value of the define callback |
Return Type
int
If 1, the user code in the callback handled the menu item. Otherwise, the application code should handle the item.
Header
ets_api_nt_cback.h
Details
define_state_ptr is the pointer returned by the callback invoked when the menu is generated (EtsT_Nt_Menu_Define_Callback). The select callback is responsible for disposing of that pointer and any associated data.
If the user selected an item that has been defined in EtsT_Nt_Menu_Define_Callback, but there is no EtsT_Nt_Menu_Select_Callback to handle it, the results are undefined.
This function is registered by Ets_Nt_Menu_Select_Callback_Register().