From 7a5dcae7932847a1bf2e00264c6eec156ca1c639 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jul 2019 20:37:01 +0200 Subject: Show minimize and maximize buttons on top level windows on Windows --- pugl/pugl_win.c | 6 ++++-- 1 file 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 }; -- cgit v1.2.1