SFML community forums

Help => Window => Topic started by: binbinhfr on April 28, 2020, 12:06:02 pm

Title: Minimized and maximized events ?
Post by: binbinhfr on April 28, 2020, 12:06:02 pm
Hi,

I search the forum, but it seems that there is no way to catch the minimized or maximized events coming from Windows, am I right ?

I understand that we can deal with the window API using the handle of the SFML window and ShowWindow  and so on, but we still cannot catch these events.

Is it planned to integrate these two simple events ?
Or is there a workaround that I could use ?

Example 1 : it would be nice to know when the window is minimized, in order to pause the application for example, until it is shown back.

Example 2 :  it would be nice to catch the maximized button, because, for the moment, if I press the maximize button, the window gets wider, but if I press it again, it does not retrieve its initial size, like the usual windows behaviour. If we were able to catch the event, we could deal with this and restore an initial size.