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().