LVM_REDRAWITEMS  X9BI4P 

The LVM_REDRAWITEMS message forces a list view control to redraw a range of items. You can send this message explicitly or by using the ListView_RedrawItemsHO510U macro.

LVM_REDRAWITEMS

wParam = (int) iFirst;  // index of first item to redraw

lParam = (int) iLast;  // index of last item to redraw

 

Parameters

iFirst

Index of the first item to redraw.

iLast

Index of the last item to redraw.

 

Return Values

Returns TRUE if successful or FALSE otherwise.

Remarks

The specified items are not actually redrawn until the list view window receives a WM_PAINT message to repaint. To repaint immediately, call the UpdateWindow function after using this macro.

See Also

ListView_RedrawItems, UpdateWindow, WM_PAINT