CTypedPtrArray::InsertAt

此成员函数调用 BASE_CLASS**::InsertAt**。

void InsertAt( 
   INT_PTR nIndex, 
   TYPE newElement, 
   INT_PTR nCount = 1  
);
void InsertAt( 
   INT_PTR nStartIndex, 
   CTypedPtrArray< BASE_CLASS, TYPE >* pNewArray  
);

参数

  • nIndex
    与该值可能会显着的一个整数索引由 CObArray::GetUpperBound返回。

  • 类型
    在基类的数组存储元素的类型。

  • newElement
    该数组将会将对象的指针。 值 NULLnewElement 允许的。

  • nCount
    应插入此元素的次数(默认为1)。

  • nStartIndex
    与该值可能会显着的一个整数索引由 CObArray::GetUpperBound返回。

  • BASE_CLASS
    类型化指针数组选件类的基类;必须为数组选件类(CObArrayCPtrArray)。

  • pNewArray
    包含组件将添加到该数组中的另一个数组。

备注

有关更详细的备注,请参见 CObArray::InsertAt

要求

Header: afxtempl.h

请参见

参考

CTypedPtrArray选件类

层次结构图