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