SFML community forums
Help => Window => Topic started by: oomek on April 11, 2018, 08:25:05 pm
-
Is it possible to hide the second window in two window app so it doesn't appear on the taskbar or alt-tab overlay, but it still visible? setVisible must be set to true.
-
I've found a way to do it in case anyone is looking for the same solution
SetWindowLongPtr(window2.getSystemHandle(), GWL_EXSTYLE,
GetWindowLongPtr(window2.getSystemHandle(), GWL_EXSTYLE)
| WS_EX_TOOLWINDOW);
-
No it's not possible with SFML and probably never will be, as widows without taskbar or alt-tab target are quite annoying, as such discouraged to do so and might not be cross-platform anyways.
Yes, the WinAPI probably has some options you can set.