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:
parent
7e5bf16111
commit
87a8b79120
@ -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_);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user