mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
parent
ce4690b869
commit
a968caf1d2
@ -973,11 +973,18 @@ make_style(const WindowProperties &properties) {
|
||||
// Additionally, the window class attribute should not include the
|
||||
// CS_PARENTDC style.
|
||||
|
||||
DWORD window_style = WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
|
||||
DWORD window_style = WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
|
||||
|
||||
if (properties.get_fullscreen()) {
|
||||
window_style |= WS_SYSMENU;
|
||||
} else if (!properties.get_undecorated()) {
|
||||
window_style |= WS_POPUP | WS_SYSMENU;
|
||||
} else {
|
||||
if (_parent_window_handle) {
|
||||
window_style |= WS_CHILD;
|
||||
} else {
|
||||
window_style |= WS_POPUP;
|
||||
}
|
||||
|
||||
if (!properties.get_undecorated()) {
|
||||
window_style |= (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX);
|
||||
|
||||
if (!properties.get_fixed_size()) {
|
||||
@ -986,6 +993,7 @@ make_style(const WindowProperties &properties) {
|
||||
window_style |= WS_BORDER;
|
||||
}
|
||||
}
|
||||
}
|
||||
return window_style;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user