ListView_RedrawItems macro (commctrl.h)

Forces a list-view control to redraw a range of items. You can use this macro or send the LVM_REDRAWITEMS message explicitly.

Syntax

void ListView_RedrawItems(
   hwndLV,
   iFirst,
   iLast
);

Parameters

hwndLV

Type: HWND

A handle to the list-view control.

iFirst

Type: int

The index of the first item to redraw.

iLast

Type: int

The index of the last item to redraw.

Return value

None

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.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h