This method retrieves the list element identified by rPosition, and then set rPosition to the POSITION value of the next entry in the list. You can use GetNext in a forward iteration loop if you establish the initial position with a call to GetHeadPosition or Find.
Header file: | Afxtempl.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
TYPE& GetNext( POSITION& rPosition ); TYPE GetNext(
POSITION& rPosition ) const;
CList::Find, CList::GetHeadPosition, CList::GetTailPosition, CList::GetPrev, CList::GetHead