feat: add windows 11 style borders to splash screen

Based on boiii - https://github.com/momo5502/boiii/blob/main/src/client/component/splash.cpp
This commit is contained in:
Lierrmm 2023-02-10 15:04:46 +00:00
parent 7e5bf16111
commit 87a8b79120

View File

@ -128,6 +128,8 @@ namespace splash
SetWindowPos(this->window_, nullptr, rect.left, rect.top, rect.right - rect.left,
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);
UpdateWindow(this->window_);
}