如何在VST 2.4中创建子窗口
How can I create a child window in VST 2.4?
我创建ExampleEditor.h和ExampleEditor.cpp
ExampleEditor::ExampleEditor(AudioEffect *effect)
{
effect->setEditor(this);
};
bool ExampleEditor::open(void *ptr)
{
//This is it?
return true;
};
VST插件文件构造函数我写
VstPlugin::VstPlugin(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, 1, 1)
{
editor = new ExampleEditor(this);
}
在什么情况下我需要创建一个窗口?主窗口已经在VST中创建?我可以使用任何库或创建窗口吗?SDL2?有人能举一个很简单的例子吗?
假设Windows:In open(),将void*ptr强制转换为HWND。这是(主机提供的)父帧窗口的窗口句柄。当使用任何库时,在创建子插件窗口时将此句柄用作父句柄。您创建的子窗口必须设置WS_child标志。
相关文章:
- 是否可以从控制台应用程序使用 C++/WinRT 创建窗口?
- 如何为使用创建窗口创建的窗口创建自定义背景颜色
- 有没有办法一次运行 3 个创建窗口函数?
- 使用带有诅咒库的 stdscr 创建窗口,在边框而不是线条中显示不需要的笑脸字符
- 无法使用 CreateWindowEx 函数创建窗口
- 无法创建窗口
- openGL PBO 使用 wglcontext,而不是创建窗口
- SDL2 无法创建窗口,因为它找不到匹配的 GLX 视觉对象
- 可以控制台应用程序自行创建窗口
- 为对话框创建窗口类
- OpenGL /Glut在Maineventloop()之后创建窗口
- 我无法创建窗口
- 创建窗口参数类型错误
- 在 C++ 中创建窗口
- 获取确切的窗口区域大小 - 创建窗口窗口大小不正确
- WinAPI在dll中创建窗口
- 如何在作为控制台启动的应用程序中创建窗口
- 创建窗口不起作用,但不提供错误消息
- 如何使用 C++ 在 Linux 中创建窗口
- WinAPI 创建窗口 + 子窗口,处理一个按钮按下