Delen via


CDocList::GetNextItem

Gets the next item in the document list.

int GetNextItem(
int nStart,
UINT nFlags );

Parameters

The following table describes the parameters for the GetNextItemmethod of the CDocList Class.

Parameter

Description

nStart

Specifies the item number in the document list to start the search.

nFlags

Specifies the geometric relation of the requested item to the specified item, and the state of the requested item. The geometric relation can be one of these values:

ValueDescription
LVNI_ABOVESearches for an item that is above the specified item.
LVNI_ALLSearches for a subsequent item by index, the default value.
LVNI_BELOWSearches for an item that is below the specified item.
LVNI_TOLEFTSearches for an item to the left of the specified item.
LVNI_TORIGHTSearches for an item to the right of the specified item.

Additionally you can specify the item's state, which can be zero, or it can be one or more of the following values:

ValueDescription
LVNI_DROPHILITEDThe item has the LVIS_DROPHILITED state flag set.
LVNI_FOCUSEDThe item has the LVIS_FOCUSED state flag set.
LVNI_SELECTEDThe item has the LVIS_SELECTED state flag set.

Remarks

If an item does not have all the specified state flags set, the search continues with the next item.

Requirements

Windows CE versions 5.0 and later.

Header file: Declared in Afxext.h.

See Also

Reference

CDocList Class

Other Resources

Unique MFC for Devices Classes