获取鼠标所在窗口句柄 - GetMousePointWindow
函数简介
获取鼠标指向的窗口句柄。
接口名称
GetMousePointWindow
DLL调用
long GetMousePointWindow(long ola);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
示例
long hwnd = GetMousePointWindow(instance);
if (hwnd != 0) {
printf("鼠标所在窗口句柄: %ld\n", hwnd);
}
返回值
长整数型:鼠标指向的窗口句柄。
