-
Notifications
You must be signed in to change notification settings - Fork 257
Closed
Description
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);
}
kirasoga and nsy738
Metadata
Metadata
Assignees
Labels
No labels