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 d5000b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/host/windows/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ 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);
}

void disable_resize(HWND hwnd)
{
SetWindowLongW(hwnd, GWL_STYLE,
GetWindowLongW(hwnd, GWL_STYLE) & ~WS_SIZEBOX & ~WS_MAXIMIZEBOX);
GetWindowLongW(hwnd, GWL_STYLE) & ~WS_SIZEBOX & ~WS_MAXIMIZEBOX);
SetWindowPos(hwnd, nullptr, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED);
}

Expand Down

0 comments on commit d5000b2

Please sign in to comment.