Export (0) Print
Expand All
Expand Minimize

ListView_RedrawItems macro

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 hwnd,
  int iFirst,
  int iLast
);

Parameters

hwnd

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

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft