设置透明度 - SetWindowTransparent
函数简介
设置窗口的透明度。
接口名称
SetWindowTransparent
DLL调用
int SetWindowTransparent(long ola, long hwnd, int trans);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| hwnd | 长整数型 | 指定的窗口句柄。 |
| trans | 整数型 | 透明度值,范围 0-255。0 完全透明,255 完全不透明。 |
示例
// 设置窗口为50%透明度
int ret = SetWindowTransparent(instance, hwnd, 128);
printf("SetWindowTransparent ret=%d\n", ret);
返回值
1 成功,0 失败。
