创建窗口 - DrawGuiWindow
函数简介
创建绘制窗口对象。
接口名称
DrawGuiWindow
DLL调用
int64_t DrawGuiWindow(int64_t instance, char* title, int32_t x, int32_t y,
int32_t width, int32_t height, int32_t style);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| title | 字符串 | 窗口标题。 |
| x | 整数型 | 左上角X。 |
| y | 整数型 | 左上角Y。 |
| width | 整数型 | 宽度。 |
| height | 整数型 | 高度。 |
| style | 整数型 | 窗口样式,0.普通窗口, 1.提示框 |
示例
int64_t ola = CreateCOLAPlugInterFace();
int64_t win = DrawGuiWindow(ola, "Demo", 100, 100, 600, 400, 0);
// ...
DestroyCOLAPlugInterFace(ola);
返回值
窗口句柄,失败返回0。
