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;