Ets_Ctl_Selected_Item_Set()

**注意:**需要 OPNET Development Kit

摘要

按索引设置组合框或弹出菜单控件的所选项。

语法

Ets_Ctl_Selected_Item_Set (ctl_ptr, selected_item)
参数 类型 说明
ctl_ptr EtsT_Ctl * 指向 ETS 控件的指针
selected_item int 要选中的项的索引

返回类型

EtsT_Compcode

若控件不是组合框或弹出菜单,返回 EtsC_Compcode_Failure;否则返回 EtsC_Compcode_Success。

头文件

ets_api_gui.h

详情

对于弹出菜单和组合框控件,选中指定索引处的项。对于其他类型的控件,会产生一个可恢复错误。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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