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.

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().

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com