设置客户区大小 - SetClientSize
函数简介
设置窗口客户区域(不包括标题栏和边框)的宽度和高度。
接口名称
SetClientSize
DLL调用
int SetClientSize(long ola, long hwnd, int width, int height);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| hwnd | 长整数型 | 指定的窗口句柄。 |
| width | 整数型 | 客户区域的目标宽度(像素)。 |
| height | 整数型 | 客户区域的目标高度(像素)。 |
示例
int ret = SetClientSize(instance, hwnd, 800, 600);
printf("SetClientSize ret=%d\n", ret);
返回值
1 成功,0 失败。
