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

BOOL ListView_RedrawItems(
   HWND hwndLV,
   int  iFirst,
   int  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

Type: BOOL

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.

Requirements

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