]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/msw/ole/activex.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: msw/ole/activex.h
3 // Purpose: interface of wxActiveXEvent
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 An event class for handling activex events passed from wxActiveXContainer.
14 ActiveX events are basically a function call with the parameters passed
15 through an array of wxVariants along with a return value that is a wxVariant
16 itself. What type the parameters or return value are depends on the context
17 (i.e. what the .idl specifies).
19 Note that unlike the third party wxActiveX function names are not supported.
26 class wxActiveXEvent
: public wxCommandEvent
30 Returns the dispatch id of this activex event. This is the numeric value from
31 the .idl file specified by the id().
33 DISPID
GetDispatchId(int idx
) const;
36 Obtains the number of parameters passed through the activex event.
38 size_t ParamCount() const;
41 Obtains the param name of the param number idx specifies as a string.
43 wxString
ParamName(size_t idx
) const;
46 Obtains the param type of the param number idx specifies as a string.
48 wxString
ParamType(size_t idx
) const;
51 Obtains the actual parameter value specified by idx.
53 wxVariant
operator[](size_t idx
);
59 @class wxActiveXContainer
61 wxActiveXContainer is a host for an activex control on Windows (and
62 as such is a platform-specific class). Note that the HWND that the class
63 contains is the actual HWND of the activex control so using dynamic events
64 and connecting to wxEVT_SIZE, for example, will recieve the actual size
65 message sent to the control.
67 It is somewhat similar to the ATL class CAxWindow in operation.
69 The size of the activex control's content is generally gauranteed to be that
70 of the client size of the parent of this wxActiveXContainer.
72 You can also process activex events through wxEVT_ACTIVEX or the
73 corresponding message map macro EVT_ACTIVEX.
82 class wxActiveXContainer
: public wxControl
86 Creates this activex container.
89 parent of this control. Must not be @NULL.
91 COM IID of pUnk to query. Must be a valid interface to an activex control.
93 Interface of activex control.
95 wxActiveXContainer(wxWindow
* parent
, REFIID iid
, IUnknown
* pUnk
);