BCGControlBar Pro for MFC
virtual int CBCGPEditListBox::AddItem ( const CString &  strIext,
DWORD_PTR  dwData = 0,
int  iIndex = -1 
)
virtual

Adds a string to a list control.

Returns
The zero-based index to the string in the list control.

Call this member function to add a string to a list control. If the iIndex parameter is -1, the string is added to the end of the list. Otherwise the string is inserted at specified by iIndex position. The dwData value can be retrieved later by GetItemData() function.

Parameters
strIextSpecifies the string to be added
dwDataSpecifies a value associated with the string
iIndexSpecifies the zero-based index of the position to insert the string.

Implements CBCGPEditListBase.