comctl32: Use SetRect() instead of open coding it.
Sebastian Lackner
sebastian at fds-team.de
Fri Apr 29 08:24:07 CDT 2016
On 29.04.2016 15:21, Michael Stefaniuc wrote:
> - rcDragIcon.left = rcListBox.left - DRAGICON_HOTSPOT_X;
> - rcDragIcon.top = rcItem.top - DRAGICON_HOTSPOT_Y;
> - rcDragIcon.right = rcListBox.left;
> - rcDragIcon.bottom = rcDragIcon.top + DRAGICON_HEIGHT;
> + SetRect(&rcDragIcon, rcListBox.left - DRAGICON_HOTSPOT_X, rcItem.top - DRAGICON_HOTSPOT_Y,
> + rcListBox.left, rcDragIcon.top + DRAGICON_HEIGHT);
This won't work as expected. Haven't checked if there are more similar cases.
More information about the wine-devel
mailing list