Пример #1
0
        void Win32Window::SetFullscreen(bool fullscreen)
        {
            if (this->fullscreen != fullscreen)
            {
                this->fullscreen = fullscreen;

                if (fullscreen)
                {
                    GetWindowRect(hWnd, &rect);

                    Recti display = Display::GetRect(GetDisplayIndex());

                    SetWindowLong(hWnd, GWL_STYLE, WS_POPUP);
                    SetWindowPos(hWnd, 0, display.Left, display.Top, display.Right - display.Left, display.Bottom - display.Top + 1, SWP_NOZORDER | SWP_FRAMECHANGED);
                    BringWindowToTop(hWnd);
                    ShowWindow(hWnd, SW_SHOWNORMAL);
                }
                else
                {
                    SetWindowLong(hWnd, GWL_STYLE, dwStyle);
                    SetWindowPos(hWnd, 0, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, SWP_NOZORDER | SWP_FRAMECHANGED);
                    ShowWindow(hWnd, SW_SHOWNORMAL);
                }
            }
        }
Пример #2
0
const FNameEntry* FName::GetDisplayNameEntry() const
{
    TNameEntryArray& Names = GetNames();
    const NAME_INDEX Index = GetDisplayIndex();
    return Names[Index];
}