禁用窗口最大化

void* hWnd = YourWindow->GetNativeWindow()->GetOSWindowHandle();

LONG WindowStyle = GetWindowLong((HWND)hWnd, GWL_STYLE);

if (WindowStyle & WS_MAXIMIZEBOX)

{

        WindowStyle &= ~WS_MAXIMIZEBOX;
        SetWindowLong((HWND)hWnd, GWL_STYLE, WindowStyle);

}

你可能感兴趣的:(UE4,c++,UE4,C++)