SFML community forums
Help => Window => Topic started by: drew on March 05, 2010, 11:27:49 pm
Title:
Making a window always on top
Post by:
drew
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.
Title:
Making a window always on top
Post by:
Laurent
on
March 06, 2010, 10:01:22 am
No.
Title:
Re: Making a window always on top
Post by:
Blaxxun
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
)
;
}
Title:
Re: Making a window always on top
Post by:
G-9
on
November 30, 2021, 08:04:51 pm
nice idea, though its not really cross-platform