Chapter 6: ActiveX Controls
VSpin User Guide
94
Setting Up Events
Overview Events are sent asynchronously by ActiveX controls to notify the
container that a procedure has finished or an error has occurred.
Consult Microsoft’s ActiveX documentation on how to handle events in
your Visual C++ or Visual Basic code.
Error Description
The stock Error event. See Microsoft documentation for explanation of
function arguments.
Parameters
InitializeComplete (LONG reserved)—Called when the VSpin has initialized.
OpenDoorComplete (LONG reserved)—Called when the VSpin door has opened.
SpinCycleComplete (LONG reserved)—Called when the VSpin has finished spinning.
Argument
Type
Argument Name
SHORT Number
BSTR FAR* Description
SCODE Scode
LPCTSTR Source
LPCTSTR HelpFile
LONG HelpContext
BOOL FAR* CancelDisplay