Hi, I was interested in maximizing/minimizing my window and found this thread. I realize this thread is a year old, but since no example was given and it is so simple on MS-Windows, I thought I would show the code to save anyone who needed to do it some time.
First include the windows header:
#include <windows.h>
Create your window with sf::Window or sf::RenderWindow as usual:
sf::RenderWindow window{sf::VideoMode{window_width, window_height}, "My Window Title"};
Then call the MS-Windows O/S ShowWindow() function to change the window state to maximized:
::ShowWindow(window.getSystemHandle(), SW_MAXIMIZE);
Also, there is a detailed and active discussion about adding various window state changing functionality to SFML that can be found here:
https://en.sfml-dev.org/forums/index.php?topic=23578.0