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

Author Topic: Making a window always on top  (Read 11303 times)

0 Members and 1 Guest are viewing this topic.

drew

  • Newbie
  • *
  • Posts: 11
    • View Profile
Making a window always on top
« on: March 05, 2010, 11:27:49 pm »
Is there a way to do this? Sorry if it's been answered before; I searched through the docs and on the forums and wasn't seeing anything.


Thanks.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Making a window always on top
« Reply #1 on: March 06, 2010, 10:01:22 am »
No.
Laurent Gomila - SFML developer

Blaxxun

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • C3D Visualizations
Re: Making a window always on top
« Reply #2 on: November 08, 2016, 09:53:14 pm »
void makeWindowOnTop(sf::RenderWindow& window)
{
        HWND hwnd = window.getSystemHandle();
        SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
}
 

G-9

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Making a window always on top
« Reply #3 on: November 30, 2021, 08:04:51 pm »
nice idea, though its not really cross-platform

 

anything