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:
parent
e9f2a94d62
commit
afaf97fe16
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue