Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to hide the second RenderWindow from taskbar and alt-tab overlay  (Read 3249 times)

0 Members and 1 Guest are viewing this topic.

oomek

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • Email
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.

oomek

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • Email
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);


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/