Share via


CListCtrl::RedrawItems

Forces a list view control to repaint a range of items.

BOOL RedrawItems( 
   int nFirst, 
   int nLast  
);

Parameters

  • nFirst
    Index of the first item to be repainted.

  • nLast
    Index of the last item to be repainted.

Return Value

Nonzero if successful; otherwise zero.

Remarks

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

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CListCtrl::DrawItem