|
|
@@ -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); |
|
|
|