Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
How to hide the second RenderWindow from taskbar and alt-tab overlay
Print
Pages: [
1
]
Author
Topic: How to hide the second RenderWindow from taskbar and alt-tab overlay (Read 3248 times)
0 Members and 1 Guest are viewing this topic.
oomek
Jr. Member
Posts: 90
How to hide the second RenderWindow from taskbar and alt-tab overlay
«
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.
Logged
oomek
Jr. Member
Posts: 90
Re: How to hide the second RenderWindow from taskbar and alt-tab overlay
«
Reply #1 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);
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
Re: How to hide the second RenderWindow from taskbar and alt-tab overlay
«
Reply #2 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.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
How to hide the second RenderWindow from taskbar and alt-tab overlay