]> git.saurik.com Git - wxWidgets.git/blame - interface/msw/ole/activex.h
Mention wxDataViewTreeCtrl in wxTreeCtrl
[wxWidgets.git] / interface / msw / ole / activex.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: msw/ole/activex.h
e54c96f1 3// Purpose: interface of wxActiveXEvent
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxActiveXEvent
11 @headerfile ole/activex.h wx/msw/ole/activex.h
4cc4bfaf 12
d9faa1fe
FM
13 An event class for handling activex events passed from wxActiveXContainer.
14
15 ActiveX events are basically a function call with the parameters passed
16 through an array of wxVariants along with a return value that is a wxVariant
17 itself. What type the parameters or return value are depends on the context
18 (i.e. what the .idl specifies).
4cc4bfaf 19
23324ae1 20 Note that unlike the third party wxActiveX function names are not supported.
4cc4bfaf 21
d9faa1fe
FM
22 @onlyfor{wxmsw}
23
23324ae1
FM
24 @library{wxbase}
25 @category{FIXME}
26*/
27class wxActiveXEvent : public wxCommandEvent
28{
29public:
30 /**
31 Returns the dispatch id of this activex event. This is the numeric value from
32 the .idl file specified by the id().
33 */
328f5751 34 DISPID GetDispatchId(int idx) const;
23324ae1
FM
35
36 /**
37 Obtains the number of parameters passed through the activex event.
38 */
328f5751 39 size_t ParamCount() const;
23324ae1
FM
40
41 /**
42 Obtains the param name of the param number idx specifies as a string.
43 */
328f5751 44 wxString ParamName(size_t idx) const;
23324ae1
FM
45
46 /**
47 Obtains the param type of the param number idx specifies as a string.
48 */
328f5751 49 wxString ParamType(size_t idx) const;
23324ae1
FM
50
51 /**
52 Obtains the actual parameter value specified by idx.
53 */
54 wxVariant operator[](size_t idx);
55};
56
57
e54c96f1 58
23324ae1
FM
59/**
60 @class wxActiveXContainer
61 @headerfile ole/activex.h wx/msw/ole/activex.h
4cc4bfaf 62
23324ae1
FM
63 wxActiveXContainer is a host for an activex control on Windows (and
64 as such is a platform-specific class). Note that the HWND that the class
65 contains is the actual HWND of the activex control so using dynamic events
66 and connecting to wxEVT_SIZE, for example, will recieve the actual size
67 message sent to the control.
4cc4bfaf 68
23324ae1 69 It is somewhat similar to the ATL class CAxWindow in operation.
4cc4bfaf 70
23324ae1
FM
71 The size of the activex control's content is generally gauranteed to be that
72 of the client size of the parent of this wxActiveXContainer.
4cc4bfaf 73
23324ae1
FM
74 You can also process activex events through wxEVT_ACTIVEX or the
75 corresponding message map macro EVT_ACTIVEX.
4cc4bfaf 76
d9faa1fe
FM
77 @onlyfor{wxmsw}
78
23324ae1
FM
79 @library{wxbase}
80 @category{FIXME}
4cc4bfaf 81
e54c96f1 82 @see wxActiveXEvent
23324ae1
FM
83*/
84class wxActiveXContainer : public wxControl
85{
86public:
87 /**
88 Creates this activex container.
d9faa1fe 89
4cc4bfaf
FM
90 @param parent
91 parent of this control. Must not be @NULL.
92 @param iid
93 COM IID of pUnk to query. Must be a valid interface to an activex control.
94 @param pUnk
d9faa1fe 95 Interface of activex control.
23324ae1
FM
96 */
97 wxActiveXContainer(wxWindow* parent, REFIID iid, IUnknown* pUnk);
98};
e54c96f1 99