@@ -43,22 +43,22 @@ namespace cycfi::elements
4343 void disable_minimize (HWND hwnd)
4444 {
4545 SetWindowLongW (hwnd, GWL_STYLE ,
46- GetWindowLongW (hwnd, GWL_STYLE ) & ~WS_MINIMIZEBOX );
46+ GetWindowLongW (hwnd, GWL_STYLE ) & ~WS_MINIMIZEBOX );
4747 SetWindowPos (hwnd, nullptr , 0 , 0 , 0 , 0 , SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED );
4848 }
4949
5050 [[maybe_unused]]
5151 void disable_maximize (HWND hwnd)
5252 {
5353 SetWindowLongW (hwnd, GWL_STYLE ,
54- GetWindowLongW (hwnd, GWL_STYLE ) & ~WS_MAXIMIZEBOX );
54+ GetWindowLongW (hwnd, GWL_STYLE ) & ~WS_MAXIMIZEBOX );
5555 SetWindowPos (hwnd, nullptr , 0 , 0 , 0 , 0 , SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED );
5656 }
5757
5858 void disable_resize (HWND hwnd)
5959 {
6060 SetWindowLongW (hwnd, GWL_STYLE ,
61- GetWindowLongW (hwnd, GWL_STYLE ) & ~WS_SIZEBOX & ~WS_MAXIMIZEBOX );
61+ GetWindowLongW (hwnd, GWL_STYLE ) & ~WS_SIZEBOX & ~WS_MAXIMIZEBOX );
6262 SetWindowPos (hwnd, nullptr , 0 , 0 , 0 , 0 , SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED );
6363 }
6464
0 commit comments