Ets_Dbox_Load()

Note: Requires OPNET Development Kit

Abstract

Load a dialog box from the resource file.

Syntax

Ets_Dbox_Load (parent_dbox_ptr, dialog_resource_path, client_state_ptr)
Argument Type Description
parent_dbox_ptr EtsT_Dbox * a parent dialog reference which can be nil
dialog_resource const char * path to the dialog resource inside a resource file. For example, a dialog resource called my_dialog, located inside a dictionary my_dictionary has the path my_dictionary/my_dialog
client_state_ptr void * arbitrary client state to be associated with a dialog

Return Type

EtsT_Dbox *

a pointer to the newly created dialog box, or OPC_NIL if an error occurred

ets_api_gui.h

Details

Loads a dialog box, including all controls defined in that dialog, from one of the resource files associated with the application. Resource files (.wrc) can be created and modified with the op_etsed utility and can be attached to the application via the "program_resources" option in the top level product configuration script (such as odktools.ets)

This function can be used to efficiently create a dialog box with pre-defined structure and contents.

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