Skip to content

Commit

Permalink
Format tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
djowel committed Oct 27, 2024
1 parent b25c7a4 commit 4a45224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/host/windows/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ namespace cycfi::elements
void disable_minimize(HWND hwnd)
{
SetWindowLongW(hwnd, GWL_STYLE,
GetWindowLongW(hwnd, GWL_STYLE) & ~WS_MINIMIZEBOX);
GetWindowLongW(hwnd, GWL_STYLE) & ~WS_MINIMIZEBOX);
SetWindowPos(hwnd, nullptr, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED);
}

[[maybe_unused]]
void disable_maximize(HWND hwnd)
{
SetWindowLongW(hwnd, GWL_STYLE,
GetWindowLongW(hwnd, GWL_STYLE) & ~WS_MAXIMIZEBOX);
GetWindowLongW(hwnd, GWL_STYLE) & ~WS_MAXIMIZEBOX);
SetWindowPos(hwnd, nullptr, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED);
}

Expand Down

0 comments on commit 4a45224

Please sign in to comment.