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

Windowing: Fix missing Close titlebar button

Prior to this change, windows such as the "Audio/MIDI Settings" window
for standalong plugins had no close button in the titlebar.
This commit is contained in:
reuk 2024-06-04 13:34:33 +01:00
parent 467f20a7a1
commit f26cce5a46
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -2459,7 +2459,11 @@ private:
{
type |= WS_OVERLAPPED;
if ((styleFlags & windowHasCloseButton) == 0)
if ((styleFlags & windowHasCloseButton) != 0)
{
type |= WS_SYSMENU;
}
else
{
// annoyingly, windows won't let you have a min/max button without a close button
jassert ((styleFlags & (windowHasMinimiseButton | windowHasMaximiseButton)) == 0);