SFML community forums

Help => Window => Topic started by: oomek on April 11, 2018, 08:25:05 pm

Title: How to hide the second RenderWindow from taskbar and alt-tab overlay
Post 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.
Title: Re: How to hide the second RenderWindow from taskbar and alt-tab overlay
Post by: oomek on April 11, 2018, 09:42:05 pm
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);

Title: Re: How to hide the second RenderWindow from taskbar and alt-tab overlay
Post by: eXpl0it3r on April 12, 2018, 12:33:16 am
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.