Minimization

In Windows, how would I go about finding out if the window has been
minimized or not? I’ve discovered that a SDL_SysWMEvent event would be
sent to the queue, and it tells you to use the SDL_GetWMInfo() function,
but that doesn’t seem to be documented, and neither does the
SDL_SysWMinfo struct that you have to pass it. Can someone show me some
code that would help? Thanks.

Micah

In Windows, how would I go about finding out if the window has been
minimized or not? I’ve discovered that a SDL_SysWMEvent event would be
sent to the queue, and it tells you to use the SDL_GetWMInfo() function,
but that doesn’t seem to be documented, and neither does the
SDL_SysWMinfo struct that you have to pass it. Can someone show me some
code that would help? Thanks.

You get an SDL_ACTIVATE event with the value SDL_APPACTIVE in the mask and
a gain of 0. You can also query for the current application state.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment