设置窗口标题 - SetWindowText
函数简介
设置窗口的标题栏文本。
接口名称
SetWindowText
DLL调用
int SetWindowText(long ola, long hwnd, string title);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| hwnd | 长整数型 | 指定的窗口句柄。 |
| title | 字符串 | 要设置的窗口标题文本,支持Unicode字符。 |
示例
int ret = SetWindowText(instance, hwnd, "新标题");
printf("SetWindowText ret=%d\n", ret);
返回值
1 成功,0 失败。
