THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/06/2010 at 08:23, xxxxxxxx wrote:
Howdy,
The only thing I can think to do would be a work around hack.
If you create a message plugin and poll for EVMSG_CHANGE you could detect if your plugin object has been converted, then make a call to BaseDocument::DoUndo(), then perform your action without adding an undo for the action, then finally make a call to BaseDocument::DoRedo().
If you keep a running list of your plugin objects as they're created, you can check to see if it's still in the document. If the object in the list is not in the document then it's probably on the undo stack. Then after calling the DoUndo() command you can check to see which objects in the list are now in the document that weren't in the document before. To keep track of what's going on, you'll probably have to set some flags in the object's container.
You'd have to work out all the details, though as it's just an idea which I've never tried, yet.
Adios,
Cactus Dan