Browse Source

Dont make win32 plugin uis resizable for now

Need to handle this properly at some point, for a future release
tags/v1.9.11
falkTX 6 years ago
parent
commit
fd98543946
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      source/utils/CarlaPluginUI.cpp

+ 9
- 1
source/utils/CarlaPluginUI.cpp View File

@@ -642,6 +642,7 @@ public:
WindowsPluginUI(Callback* const cb, const uintptr_t parentId, const bool isResizable) noexcept WindowsPluginUI(Callback* const cb, const uintptr_t parentId, const bool isResizable) noexcept
: CarlaPluginUI(cb, isResizable), : CarlaPluginUI(cb, isResizable),
fWindow(nullptr), fWindow(nullptr),
fChildWindow(nullptr),
fParentWindow(nullptr), fParentWindow(nullptr),
fIsVisible(false), fIsVisible(false),
fFirstShow(true) fFirstShow(true)
@@ -669,8 +670,12 @@ public:
} }


int winFlags = WS_POPUPWINDOW | WS_CAPTION; int winFlags = WS_POPUPWINDOW | WS_CAPTION;

if (isResizable) if (isResizable)
winFlags |= WS_SIZEBOX;
{
// not supported right now
// winFlags |= WS_SIZEBOX;
}


fWindow = CreateWindowEx(WS_EX_TOPMOST, fWindow = CreateWindowEx(WS_EX_TOPMOST,
classNameBuf, "Carla Plugin UI", winFlags, classNameBuf, "Carla Plugin UI", winFlags,
@@ -834,6 +839,8 @@ public:
void setChildWindow(void* const winId) override void setChildWindow(void* const winId) override
{ {
CARLA_SAFE_ASSERT_RETURN(winId != nullptr,); CARLA_SAFE_ASSERT_RETURN(winId != nullptr,);

fChildWindow = (HWND)fChildWindow;
} }


void* getPtr() const noexcept override void* getPtr() const noexcept override
@@ -848,6 +855,7 @@ public:


private: private:
HWND fWindow; HWND fWindow;
HWND fChildWindow;
HWND fParentWindow; HWND fParentWindow;
WNDCLASS fWindowClass; WNDCLASS fWindowClass;




Loading…
Cancel
Save