From fd985439461b3a91cee382adb5a0904d24ad8298 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 9 Sep 2018 18:54:12 +0200 Subject: [PATCH] Dont make win32 plugin uis resizable for now Need to handle this properly at some point, for a future release --- source/utils/CarlaPluginUI.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/utils/CarlaPluginUI.cpp b/source/utils/CarlaPluginUI.cpp index 32fa7615e..6812fa37c 100644 --- a/source/utils/CarlaPluginUI.cpp +++ b/source/utils/CarlaPluginUI.cpp @@ -642,6 +642,7 @@ public: WindowsPluginUI(Callback* const cb, const uintptr_t parentId, const bool isResizable) noexcept : CarlaPluginUI(cb, isResizable), fWindow(nullptr), + fChildWindow(nullptr), fParentWindow(nullptr), fIsVisible(false), fFirstShow(true) @@ -669,8 +670,12 @@ public: } int winFlags = WS_POPUPWINDOW | WS_CAPTION; + if (isResizable) - winFlags |= WS_SIZEBOX; + { + // not supported right now + // winFlags |= WS_SIZEBOX; + } fWindow = CreateWindowEx(WS_EX_TOPMOST, classNameBuf, "Carla Plugin UI", winFlags, @@ -834,6 +839,8 @@ public: void setChildWindow(void* const winId) override { CARLA_SAFE_ASSERT_RETURN(winId != nullptr,); + + fChildWindow = (HWND)fChildWindow; } void* getPtr() const noexcept override @@ -848,6 +855,7 @@ public: private: HWND fWindow; + HWND fChildWindow; HWND fParentWindow; WNDCLASS fWindowClass;