# Maximize Window (NOT FULLSCREEN) in Cinder for Windows

**URL:** <https://discourse.libcinder.org/t/maximize-window-not-fullscreen-in-cinder-for-windows/1912>\
**Category:** Uncategorized\
**Created:** [January 31, 2022, 12:33pm UTC](https://discourse.libcinder.org/t/maximize-window-not-fullscreen-in-cinder-for-windows/1912 "2022-01-31T12:33:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![takti](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@takti](https://discourse.libcinder.org/u/takti)\
**Post date:** [January 31, 2022, 12:33pm UTC](https://discourse.libcinder.org/t/maximize-window-not-fullscreen-in-cinder-for-windows/1912/1 "2022-01-31T12:33:05Z")

</div>

Hey, I am currently wokring on my project for cinder and i would like to start it maximized and not floating. is there a way i can accomplish this? I know there is the SetFullScreen mode but i want to be windowed so i can make it smaller if i want to

---

<div class="post-metadata">

**Author:** ![lithium](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/lithium/32/38_2.png) [@lithium](https://discourse.libcinder.org/u/lithium)\
**Post date:** [January 31, 2022, 12:56pm UTC](https://discourse.libcinder.org/t/maximize-window-not-fullscreen-in-cinder-for-windows/1912/2 "2022-01-31T12:56:38Z")

</div>

Windows specific:

```cpp
#include <windows.h>

ShowWindow ( (HWND)getWindow ( )->getNative ( ), SW_SHOWMAXIMIZED );

```

Generic cross platform solution:

```cpp
auto bounds = Display::getMainDisplay ( )->getBounds ( );
getWindow ( )->setSize ( bounds.getSize() );
getWindow ( )->setPos ( ivec2 ( bounds.getCenter ( ) ) - bounds.getSize ( ) / 2 );

```

You might need to adjust `bounds` a bit to take into account the taskbar etc
