doomglhfcn
doomglhfcn

Reputation: 145

Can an SDL2 window be always active and ontop of a DirectX window?

The SDL2 window must constantly be ontop of the directX window regardless if the user is clicking away at the directX or SDL2 window.

Why?

I will use this SDL window to toggle music that I want to listen to while still being able to enjoy my video game.

Thanks!

Upvotes: 0

Views: 364

Answers (1)

Jonny D
Jonny D

Reputation: 2344

Not sure if it's possible without doing some WinAPI calls, but try messing around with SDL_RaiseWindow().

https://wiki.libsdl.org/SDL_RaiseWindow

Upvotes: 1

Related Questions