@@ -43,22 +43,22 @@ namespace cycfi::elements
43
43
void disable_minimize (HWND hwnd)
44
44
{
45
45
SetWindowLongW (hwnd, GWL_STYLE,
46
- GetWindowLongW (hwnd, GWL_STYLE) & ~WS_MINIMIZEBOX);
46
+ GetWindowLongW (hwnd, GWL_STYLE) & ~WS_MINIMIZEBOX);
47
47
SetWindowPos (hwnd, nullptr , 0 , 0 , 0 , 0 , SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED);
48
48
}
49
49
50
50
[[maybe_unused]]
51
51
void disable_maximize (HWND hwnd)
52
52
{
53
53
SetWindowLongW (hwnd, GWL_STYLE,
54
- GetWindowLongW (hwnd, GWL_STYLE) & ~WS_MAXIMIZEBOX);
54
+ GetWindowLongW (hwnd, GWL_STYLE) & ~WS_MAXIMIZEBOX);
55
55
SetWindowPos (hwnd, nullptr , 0 , 0 , 0 , 0 , SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED);
56
56
}
57
57
58
58
void disable_resize (HWND hwnd)
59
59
{
60
60
SetWindowLongW (hwnd, GWL_STYLE,
61
- GetWindowLongW (hwnd, GWL_STYLE) & ~WS_SIZEBOX & ~WS_MAXIMIZEBOX);
61
+ GetWindowLongW (hwnd, GWL_STYLE) & ~WS_SIZEBOX & ~WS_MAXIMIZEBOX);
62
62
SetWindowPos (hwnd, nullptr , 0 , 0 , 0 , 0 , SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED);
63
63
}
64
64
0 commit comments