查看绑定窗口 - GetBindWindow
函数简介
获取当前对象已经绑定的窗口句柄。
接口名称
GetBindWindow
DLL调用
long GetBindWindow(long ola);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
示例
long hwnd = GetBindWindow(instance);
if (hwnd != 0) {
printf("当前绑定窗口句柄: %ld\n", hwnd);
} else {
printf("未绑定窗口\n");
}
返回值
长整数型:当前绑定的窗口句柄。未绑定窗口时返回 0。
