I am inserting items into a rich edit control. I need to be able to identify the itmes as they are deleted. These items are of two types, either a block of protected text(that will be deleted as a whole block) or an file that is inserted as an object using InsertObject(filename). These items are identified using an ID number from a database, so I want to be able to tag them with this ID number in the rich edit text using hidden text. Evertime I try to insert any foreign rtf code into the rich edit, it is filtered out by the control.
Is there a way to insert comments into rtf? Hidden text codes(/v .... /v0) are removed by the control and the hidden text appears as normal text.
It looks like the /v just doesn't match the known rtf codes of the rich edit control. Is there something I am not doing, or is there a way to tell the control what this is?
.....any new ideas of how to identify these items as they are deleted are welcome.