Browse Source

Fix win32 embed size

gh-pages
falkTX 10 years ago
parent
commit
06d5881103
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      dgl/src/Window.cpp
  2. +1
    -1
      dgl/src/pugl/pugl_win.cpp

+ 1
- 1
dgl/src/Window.cpp View File

@@ -493,7 +493,7 @@ struct Window::PrivateData {
#if defined(DISTRHO_OS_WINDOWS)
const int winFlags = WS_POPUPWINDOW | WS_CAPTION | (fResizable ? WS_SIZEBOX : 0x0);
RECT wr = { 0, 0, static_cast<long>(width), static_cast<long>(height) };
AdjustWindowRectEx(&wr, winFlags, FALSE, WS_EX_TOPMOST);
AdjustWindowRectEx(&wr, fUsingEmbed ? WS_CHILD : winFlags, FALSE, WS_EX_TOPMOST);

SetWindowPos(hwnd, 0, 0, 0, wr.right-wr.left, wr.bottom-wr.top,
SWP_NOACTIVATE|SWP_NOMOVE|SWP_NOOWNERZORDER|SWP_NOZORDER);


+ 1
- 1
dgl/src/pugl/pugl_win.cpp View File

@@ -107,7 +107,7 @@ puglCreateWindow(PuglView* view, const char* title)
// Adjust the overall window size to accomodate our requested client size
const int winFlags = WS_POPUPWINDOW | WS_CAPTION | (view->resizable ? WS_SIZEBOX : 0x0);
RECT wr = { 0, 0, view->width, view->height };
AdjustWindowRectEx(&wr, winFlags, FALSE, WS_EX_TOPMOST);
AdjustWindowRectEx(&wr, view->parent ? WS_CHILD : winFlags, FALSE, WS_EX_TOPMOST);

impl->hwnd = CreateWindowEx(
WS_EX_TOPMOST,


Loading…
Cancel
Save