1
0
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:
narzoul 2020-04-11 11:20:43 +02:00
parent 169b4c0534
commit 4d46189aa8

View File

@ -102,6 +102,17 @@ namespace
}
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
{