diff options
author | David Robillard <d@drobilla.net> | 2019-07-21 20:37:01 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-21 21:32:57 +0200 |
commit | 7a5dcae7932847a1bf2e00264c6eec156ca1c639 (patch) | |
tree | 14865d57f0232e340a8d9abca2a65e47f0de543b | |
parent | 80191fb070d60e7bffd78c2ef9e43b2610f2b8ff (diff) |
Show minimize and maximize buttons on top level windows on Windows
-rw-r--r-- | pugl/pugl_win.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pugl/pugl_win.c b/pugl/pugl_win.c index c91d383..a5cb6cc 100644 --- a/pugl/pugl_win.c +++ b/pugl/pugl_win.c @@ -207,9 +207,11 @@ puglCreateWindow(PuglView* view, const char* title) } // Calculate window flags - unsigned winFlags = view->parent ? WS_CHILD : WS_POPUPWINDOW | WS_CAPTION; + unsigned winFlags = (view->parent + ? WS_CHILD + : (WS_POPUPWINDOW | WS_CAPTION | WS_MINIMIZEBOX)); if (view->hints.resizable) { - winFlags |= WS_SIZEBOX; + winFlags |= WS_SIZEBOX | WS_MAXIMIZEBOX; if (view->min_width || view->min_height) { // Adjust the minimum window size to accomodate requested view size RECT mr = { 0, 0, view->min_width, view->min_height }; |