获取坐标所在窗口句柄 - GetPointWindow
函数简介
获取给定坐标的可见窗口句柄。
接口名称
GetPointWindow
DLL调用
long GetPointWindow(long ola, int x, int y);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| x | 整数型 | 屏幕X坐标。 |
| y | 整数型 | 屏幕Y坐标。 |
示例
long hwnd = GetPointWindow(instance, 100, 200);
if (hwnd != 0) {
printf("坐标(100,200)处窗口句柄: %ld\n", hwnd);
}
返回值
长整数型:指定坐标处可见窗口的句柄。
