N
naklov
hi,
want to catch the ShapeDeleted Event to delete a part of my
SolutionXML.
The EventMonitor, distribute by the Visio SDK, shows me this Event,
but my VSL doesnt realize that.
I also use MyClass as a derived Class from VEventHandler, and call
after i create an instance of MyClass, an Init - Method, which should
create my Eventlistener.
Does anybody knows the difference between CoCreateAddonSinkForHandler
and CoCreateAddonSink ???
############# Begin INIT Method Code ###################
CVisioDocument clVsoDoc;
CVisioEventList clVsoEList;
CVisioEvent clVsoEvent;
IUnknown FAR* clPtrSink = NULL;
hr = clVsoApp.ActiveDocument(clVsoDoc);
hr = clVsoDoc.EventList(clVsoEList);
hr = CoCreateAddonSinkForHandler(NULL, this, &clPtrSink);
hr = clVsoEList.AddAdvise((short)visEvtCodeQueryCancelSelDel,
VVariant(clPtrSink), VBstr(_T("")), VBstr(_T("")), clVsoEvent);
############# END Code ###################
want to catch the ShapeDeleted Event to delete a part of my
SolutionXML.
The EventMonitor, distribute by the Visio SDK, shows me this Event,
but my VSL doesnt realize that.
I also use MyClass as a derived Class from VEventHandler, and call
after i create an instance of MyClass, an Init - Method, which should
create my Eventlistener.
Does anybody knows the difference between CoCreateAddonSinkForHandler
and CoCreateAddonSink ???
############# Begin INIT Method Code ###################
CVisioDocument clVsoDoc;
CVisioEventList clVsoEList;
CVisioEvent clVsoEvent;
IUnknown FAR* clPtrSink = NULL;
hr = clVsoApp.ActiveDocument(clVsoDoc);
hr = clVsoDoc.EventList(clVsoEList);
hr = CoCreateAddonSinkForHandler(NULL, this, &clPtrSink);
hr = clVsoEList.AddAdvise((short)visEvtCodeQueryCancelSelDel,
VVariant(clPtrSink), VBstr(_T("")), VBstr(_T("")), clVsoEvent);
############# END Code ###################