Prev Next

LVM_REDRAWITEMS Overview  Group

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_RedrawItems 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