File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -973,17 +973,25 @@ make_style(const WindowProperties &properties) {
973
973
// Additionally, the window class attribute should not include the
974
974
// CS_PARENTDC style.
975
975
976
- DWORD window_style = WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
976
+ DWORD window_style = WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
977
977
978
978
if (properties.get_fullscreen ()) {
979
- window_style |= WS_SYSMENU;
980
- } else if (!properties.get_undecorated ()) {
981
- window_style |= (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX);
982
-
983
- if (!properties.get_fixed_size ()) {
984
- window_style |= (WS_SIZEBOX | WS_MAXIMIZEBOX);
979
+ window_style |= WS_POPUP | WS_SYSMENU;
980
+ } else {
981
+ if (_parent_window_handle) {
982
+ window_style |= WS_CHILD;
985
983
} else {
986
- window_style |= WS_BORDER;
984
+ window_style |= WS_POPUP;
985
+ }
986
+
987
+ if (!properties.get_undecorated ()) {
988
+ window_style |= (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX);
989
+
990
+ if (!properties.get_fixed_size ()) {
991
+ window_style |= (WS_SIZEBOX | WS_MAXIMIZEBOX);
992
+ } else {
993
+ window_style |= WS_BORDER;
994
+ }
987
995
}
988
996
}
989
997
return window_style;
You can’t perform that action at this time.
0 commit comments