Merge pull request #23 from Lierrmm/main
feat: Add windows 11 style borders to splash screen
This commit is contained in:
commit
e7b741ebe1
@ -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…
x
Reference in New Issue
Block a user