Skip to content

FullScreen Window #392

@INVOPOS

Description

@INVOPOS

i have added fullscreen to the center function can you added to separate function

void BaseFlutterWindow::Center() {
auto handle = GetWindowHandle();
if (!handle) {
return;
}
RECT rc;
GetWindowRect(handle, &rc);
CenterRectToMonitor(&rc);
SetWindowPos(handle, nullptr, rc.left, rc.top, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);
//Full Screen
LONG g_style_before_fullscreen = GetWindowLong(handle, GWL_STYLE);
SetWindowLongPtr(handle, GWL_STYLE, g_style_before_fullscreen & ~WS_OVERLAPPEDWINDOW);
SetWindowPos(handle, 0, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions