Contents Up Previous Next

wxActiveXEvent

An event class for handling activex events passed from wxActiveXContainer. ActiveX events are basically a function call with the parameters passed through an array of wxVariants along with a return value that is a wxVariant itself. What type the parameters or return value are depends on the context (i.e. what the .idl specifies).

Note that unlike the third party wxActiveX function names are not supported.

Derived from

wxCommandEvent

Include files

<wx/msw/ole/activex.h>

Event table macros

EVT_ACTIVEX(func) Sent when the activex control hosted by wxActiveXContainer recieves an activex event.

Members

wxActiveXEvent::ParamCount
wxActiveXEvent::ParamType
wxActiveXEvent::ParamName
wxActiveXEvent::operator[]
wxActiveXEvent::GetDispatchId


wxActiveXEvent::ParamCount

size_t ParamCount() const

Obtains the number of parameters passed through the activex event.


wxActiveXEvent::ParamType

wxString ParamType(size_t idx) const

Obtains the param type of the param number idx specifies as a string.


wxActiveXEvent::ParamName

wxString ParamName(size_t idx) const

Obtains the param name of the param number idx specifies as a string.


wxActiveXEvent::operator[]

wxVariant operator[](size_t idx)

Obtains the actual parameter value specified by idx.


wxActiveXEvent::GetDispatchId

DISPID GetDispatchId(int idx) const

Returns the dispatch id of this activex event. This is the numeric value from the .idl file specified by the id().