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:
parent
467f20a7a1
commit
f26cce5a46
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue