Skip to content

Commit

Permalink
fix(window/win.cc): handle closable and non-resiable
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Nov 5, 2024
1 parent 257ec48 commit a99f660
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/window/win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,8 @@ namespace SSC {
if (!options.resizable) {
style &= ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_SYSMENU);
style &= ~(WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE | WS_EX_STATICEDGE);
} else if (options.closable && !options.frameless) {
style |= WS_CAPTION | WS_SYSMENU;
}

this->window = CreateWindowEx(
Expand Down

0 comments on commit a99f660

Please sign in to comment.