Disable Windows Minimize Button?

Hi folks,

Just wanted to know if there was something built in to SDL2 that I could use to disable the minimize button. There is a case in Vulkan apps where you have to handle window minimization and honestly my users just don’t need to have the ability to do that and I’d rather just turn it off than think about it. Thanks!

Having lots of fun with the library!

As far as I know, you can’t do that with SDL2.
You can instead use SDL_WINDOW_BORDERLESS to disable the border and the titlebar directly, and draw it yourself in your app. Otherwise, you can manually disable the buttons with winapi functions.

If you are only targeting Windows, check the following link as it might help you start: SetWindowLongW function (winuser.h) - Win32 apps | Microsoft Docs