Call this member function to retrieve the CObject pointer associated with a given position. A variable of type POSITION is a key for the list. It is not the same as an index, and you cannot operate on a POSITION value yourself.
You must ensure that your POSITION value represents a valid position in the list. If it is invalid, then the Debug version of the MFC for Windows CE asserts.
CObject*& GetAt( POSITION position );
CObject* GetAt( POSITION position ) const;
Header file: | Afxcoll.h |
Platforms: | |
Versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CObList Overview, CObList Member Functions, List Classes, CObList::Find, CObList::SetAt, CObList::GetNext, CObList::GetPrev, CObList::GetHead