1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Windows: Update minimise and maximise window flags

The docs for WS_MINIMIZEBOX and WS_MAXIMIZEBOX specify that WS_SYSMENU must be specified.
The docs for WS_SYSMENU specify that WS_CAPTION must be specified.
This commit is contained in:
reuk 2024-08-06 18:13:57 +01:00
parent e9f2a94d62
commit afaf97fe16
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -2447,8 +2447,8 @@ private:
{
type |= titled ? (WS_OVERLAPPED | WS_CAPTION) : WS_POPUP;
type |= hasClose ? (WS_SYSMENU | WS_CAPTION) : 0;
type |= hasMin ? (WS_MINIMIZEBOX | WS_CAPTION) : 0;
type |= hasMax ? (WS_MAXIMIZEBOX | WS_CAPTION) : 0;
type |= hasMin ? (WS_MINIMIZEBOX | WS_CAPTION | WS_SYSMENU) : 0;
type |= hasMax ? (WS_MAXIMIZEBOX | WS_CAPTION | WS_SYSMENU) : 0;
type |= resizable || windowUsesNativeShadow() ? WS_THICKFRAME : 0;
exstyle |= appearsOnTaskbar ? WS_EX_APPWINDOW : WS_EX_TOOLWINDOW;
}