This method retrieves the list element identified by rPosition, and then set rPosition to the POSITION value of the previous entry in the list. You can use GetPrev in a reverse iteration loop if you establish the initial position with a call to GetTailPosition 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& GetPrev( POSITION& rPosition ); TYPE GetPrev( POSITION& rPosition ) const;
CList::Find, CList::GetTailPosition, CList::GetHeadPosition, CList::GetNext, CList::GetHead