mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
Handle window region changes (used by ComboBox drop-down animation)
This commit is contained in:
parent
169b4c0534
commit
4d46189aa8
@ -102,6 +102,17 @@ namespace
|
|||||||
}
|
}
|
||||||
|
|
||||||
SetWindowPos(hwnd, insertAfter, wr.left, wr.top, wr.right - wr.left, wr.bottom - wr.top, flags);
|
SetWindowPos(hwnd, insertAfter, wr.left, wr.top, wr.right - wr.left, wr.bottom - wr.top, flags);
|
||||||
|
|
||||||
|
HRGN rgn = CreateRectRgn(0, 0, 0, 0);
|
||||||
|
if (ERROR != GetWindowRgn(owner, rgn))
|
||||||
|
{
|
||||||
|
SetWindowRgn(hwnd, rgn, FALSE);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetWindowRgn(hwnd, nullptr, FALSE);
|
||||||
|
DeleteObject(rgn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user