Ets_Ctl_Domain_Object_By_Point_Get()

注意: 需要 OPNET Development Kit

摘要

获取网络域中给定控件坐标处最上层的指定类型对象。

语法

Ets_Ctl_Domain_Object_By_Point_Get (dom_ctl_ptr, hit_point, ets_type)
参数 类型 说明
dom_ctl_ptr EtsT_Ctl * 目标域控件。
hit_point const EtsT_Point * 指定域中要获取最上层对象的点。
ets_type EtsT_Obj_Type 要获取的对象类型;必须为 EtsC_Obj_Mtype_Link 或 EtsC_Obj_Mtype_Site。

返回类型

EtsT_Obj_Handle

匹配对象的句柄。若 hit_point 处没有对象、dom_ctl_ptr 为空或不包含子网、或 ets_type 不是允许的类型,则返回无效的对象句柄。

头文件

ets_api_ctl_dom.h

详情

hit_point 是指定域控件(dom_ctl_ptr)中的一个位置。该位置由控件内的 x,y 坐标给出,单位为相对控件原点的像素。EtsT_Point 定义如下:

struct EtsT_Point
	{
	int	    pos_x;
	int	    pos_y;
	};

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