if (UGameEngine)
{
TSharedPtr<SWindow> windowPtr = gameEngine->GameViewportWindow.Pin();
SWindow* window = windowPtr.Get();
if (window)
{
uint32 Flags = SWP_NOMOVE | SWP_NOSIZE | SWP_NOOWNERZORDER;
HWND HWndInsertAfter = HWND_TOPMOST;
::SetWindowPos((HWND)window->GetNativeWindow()->GetOSWindowHandle(), HWndInsertAfter, 0, 0, 0, 0, Flags);
}
}
UE4 窗口置顶
最新推荐文章于 2024-07-05 16:39:16 发布