SECEdit::SetItemData

SEC_DWORD SECEdit::SetItemData(int nLine, SEC_DWORD dwItemData)

Sets user data associated with the given line. Each line can have a user-defined 32/64-bit value assigned.

Defined in: SECEdit.cpp

Return Value

Returns the previously stored user-defined value as a SEC_DWORD.

Parameters

nLine

The line index of the text.

dwItemData

User data to be stored with the text line.

Developer Notes

When a line becomes deleted, RemoveItemDataLines is called to delete the SECEditItemData object associated with the line. You should override the RemoveItemDataLines method to handle any memory cleanup to prevent the allocated memory from becoming orphaned.

See Also

SECEdit GetItemData