创建面板 - DrawGuiPanel
函数简介
创建面板对象,可作为窗口或其他面板的子容器。
接口名称
DrawGuiPanel
DLL调用
int64_t DrawGuiPanel(int64_t instance, int64_t parentHandle, int32_t x,
int32_t y, int32_t width, int32_t height);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| parentHandle | 长整数型 | 父对象句柄(窗口/面板)。 |
| x | 整数型 | 左上角X。 |
| y | 整数型 | 左上角Y。 |
| width | 整数型 | 宽度。 |
| height | 整数型 | 高度。 |
示例
int64_t ola = CreateCOLAPlugInterFace();
int64_t win = DrawGuiWindow(ola, "Demo", 100, 100, 600, 400, 0);
int64_t panel = DrawGuiPanel(ola, win, 10, 10, 200, 200);
// ...
DestroyCOLAPlugInterFace(ola);
返回值
面板句柄,失败返回0。
