Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 08-06-2019, 03:58 AM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default WDL/swell: On macOS, windows created via CreateDialog always remain in background

I am trying to create a blank top-level, modeless window via WDL/swell:
Code:
hwnd = CreateDialog(nullptr, MAKEINTRESOURCE(0), nullptr, myWinProc);
SetWindowLong(hwnd, GWL_STYLE, WS_CAPTION|WS_THICKFRAME|WS_SYSMENU);
SetWindowText(hwnd, title);
SetWindowPos(hwnd, HWND_TOPMOST, x, y, w, h, SWP_SHOWWINDOW | SWP_NOCOPYBITS);
ShowWindow(hwnd, SW_SHOW);
where myWinProc mostly just passes every message on to DefWindowProc.

On Linux, this works fine. On macOS, however, the newly created window remains below all other REAPER windows except the main window. Even if I try SetForegroundWindow, it doesn't seem to have any effect on this window.

I am doing something wrong?
juliansader is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:53 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.