[PATCH v3 5/5] comctl32: LVM_INSERTITEM handler should send notifications with uChanged = LVIF_STATE.

Nikolay Sivov nsivov at codeweavers.com
Mon Feb 21 02:47:11 CST 2022



On 2/11/22 17:25, Dmitry Timoshkov wrote:
>       }
> -    nmlv.uChanged = uChanged ? uChanged : lpLVItem->mask;
> +    /* According to the tests uChanged in the notification for a new item
> +     * has only LVIF_STATE flag set.
> +     */
> +    if (isNew)
> +        nmlv.uChanged = LVIF_STATE;
> +    else
> +        nmlv.uChanged = uChanged ? uChanged : lpLVItem->mask;
>       nmlv.lParam = item.lParam;
>   
Shorter way I think is to tweak uChanged like this:

if (isNew) uChanged &= ~LVIF_STATE;



More information about the wine-devel mailing list