共用方式為


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

Concepts

CListCtrl Class

CListCtrl Members

Hierarchy Chart

CListCtrl::DrawItem