Merge pull request #23 from Lierrmm/main

feat: Add windows 11 style borders to splash screen
This commit is contained in:
quaK 2023-02-10 21:19:09 +02:00 committed by GitHub
commit e7b741ebe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,6 +128,8 @@ namespace splash
SetWindowPos(this->window_, nullptr, rect.left, rect.top, rect.right - rect.left, SetWindowPos(this->window_, nullptr, rect.left, rect.top, rect.right - rect.left,
rect.bottom - rect.top, SWP_NOZORDER); rect.bottom - rect.top, SWP_NOZORDER);
SetWindowRgn(this->window_, CreateRoundRectRgn(0, 0, rect.right - rect.left, rect.bottom - rect.top, 15, 15), TRUE);
ShowWindow(this->window_, SW_SHOW); ShowWindow(this->window_, SW_SHOW);
UpdateWindow(this->window_); UpdateWindow(this->window_);
} }