Call this member function to write the CObject pointer to the specified position in the list. 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.
void SetAt( POSITION pos, CObject* newElement );
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::GetAt, CObList::GetNext, CObList::GetPrev