can anyone with win32 knowledge tell me how to embed a swell/win32 gui in the main plugin window? I have a new version of IPlug that can work without IGraphics:
https://github.com/olilarkin/wdl-ol/...s/ReaperPlugin
Code:
static WDL_DLGRET MainDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
ReaperPlugin* _this = (ReaperPlugin*) lParam;
// SetWindowLongPtr(hwndDlg, GWLP_USERDATA, lParam);
switch (uMsg) {
case WM_INITDIALOG:
// hwndDlg = _this->mHWND;
ShowWindow(hwndDlg, SW_SHOW); // TODO: how to embed window?
return 1;
default:
break;
}
return 0;
}
void* ReaperPlugin::OpenWindow(void* handle)
{
mHWND = CreateDialogParam(0, MAKEINTRESOURCE(MAPPING_DIALOG),(HWND)handle, MainDlgProc,(LPARAM) this);
return mHWND;
}