EtsT_Nt_Object_Palette_List_Define_Callback

Note: Requires OPNET Development Kit

Abstract

Callback: Used to add or remove items from the object palette list.

Syntax

EtsT_Nt_Object_Palette_List_Define_Callback (model_h, obj_pal_lptr, state_ptr)
Argument Type Description
model_h EtsT_Model_Handle Network model containing the object palettes.
obj_pal_lptr PrgT_List * List of object palette names.
state_ptr void * Arbitrary client state. This pointer is the value that was passed when the callback was registered.

Return Type

void

No return value.

ets_api_nt_cback.h

Details

This function can be used to change a menu (for example, add or delete menu items). Each individual palette name is an allocated character array, so the memory for any names removed from the list must also be deleted. Accordingly, any additions to the list must be made with allocated memory and the ETS kernel will delete that memory automatically when the object palette list is deleted.

This function is registered by Ets_Nt_Object_Palette_List_Define_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