IVisEventProc Interface
Visio Automation Reference |
The interface for handling event notifications in Microsoft Office Visio.
Version Information
Version Added: Visio 2000
Remarks
In addition to the methods inherited from IDispatch, the IVisEventProc interface contains a single function, VisEventProc, which returns a Variant. Because IVisEventProc inherits from IDispatch and hence from IUnknown, you must implement the methods in those interfaces as well as the VisEventProc method in IVisEventProc.
To handle event notifications in Visio, create a class module that implements the IVisEventProc interface in Microsoft Visual Basic for Applications (VBA) or Microsoft Visual Basic, and then create an instance of this class to pass as an argument to the AddAdvise method of the EventList collection.
For more information about using the IVisEventProc interface to handle event notifications, search for "Visio event objects" on MSDN, the Microsoft Developer Network Web site. For more information about implementing IDispatch methods, search for "Implementing the IDispatch Interface" on MSDN.
IVisEventProc methods in VTable order
IDispatchMethods | Description |
---|---|
QueryInterface |
Returns a pointer to a specified interface. |
AddRef |
Increments the reference count. |
Release |
Decrements the reference count. |
GetTypeInfoCount |
Retrieves the number of type-information interfaces that an object provides (either 0 or 1). |
GetTypeInfo |
Gets the type information for an object. |
GetIDsOfNames |
Maps a single member and an optional set of argument names to a corresponding set of integer dispatch IDs (DISPIDs). |
Invoke |
Provides access to properties and methods exposed by an object. |
IVisEventProc Methods | Description |
VisEventProc |
Handles event notifications. Returns a Variant. |
See Also