XLL+ Class Library

CXlControlListBox::InsertString

Inserts a string at a specific location in a list box

[C++]
int InsertString(
   int nIndex,
   const char* pszItem
);

Parameters

nIndex

Specifies the zero-based index of the position to insert the string. If this parameter is –1, the string is added to the end of the list.

pszItem

Points to the null-terminated string that is to be inserted.

Return value

The zero-based index to the string in the list box. The return value is -1 if an error occurs.

Remarks

Inserts a string into the list box.

Requirements

Header: xldialog.h

See Also

CXlControlListBox Class | CXlControlListBox Methods