获取鼠标所在窗口句柄 - GetMousePointWindow
函数简介
获取鼠标指向的窗口句柄
接口名称
GetMousePointWindow
DLL调用
long GetMousePointWindow(long ola)
参数定义:
ola
(长整型数): OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。
示例:
long hwnd = GetMousePointWindow(ola);
if (hwnd != 0) {
printf("Mouse point window handle: %ld\n", hwnd);
}
COM调用
long GetMousePointWindow()
参数定义:
无参数
示例:
hwnd = ola.GetMousePointWindow()
messagebox("Mouse point window handle: " + hwnd)
返回值
长整型数:
- 返回鼠标指向的窗口句柄