1 <!DOCTYPE HTML PUBLIC 
"-//W3C//DTD HTML 4.0 Transitional//EN"> 
   2 <html><head><meta http-equiv=
"Content-Type" content=
"text/html;charset=iso-8859-1"> 
   3 <title>wxactivex.h File Reference
</title> 
   4 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css"> 
   6 <!-- Generated by Doxygen 1.3-rc3 --> 
   8 <a class=
"qindex" href=
"index.html">Main Page
</a>   <a class=
"qindex" href=
"namespaces.html">Namespace List
</a>   <a class=
"qindex" href=
"hierarchy.html">Class Hierarchy
</a>   <a class=
"qindex" href=
"classes.html">Alphabetical List
</a>   <a class=
"qindex" href=
"annotated.html">Data Structures
</a>   <a class=
"qindex" href=
"files.html">File List
</a>   <a class=
"qindex" href=
"functions.html">Data Fields
</a>   <a class=
"qindex" href=
"globals.html">Globals
</a>   </center> 
   9 <hr><h1>wxactivex.h File Reference
</h1><hr><a name=
"_details"></a><h2>Detailed Description
</h2> 
  10 implements 
<a class=
"el" href=
"classwxActiveX.html">wxActiveX
</a> window class and OLE tools
 
  14 Definition in file 
<a class=
"el" href=
"wxactivex_8h-source.html">wxactivex.h
</a>.
 
  16 <code>#include 
<wx/setup.h
></code><br> 
  17 <code>#include 
<wx/wx.h
></code><br> 
  18 <code>#include 
<wx/variant.h
></code><br> 
  19 <code>#include 
<wx/datetime.h
></code><br> 
  20 <code>#include 
<oleidl.h
></code><br> 
  21 <code>#include 
<exdisp.h
></code><br> 
  22 <code>#include 
<docobj.h
></code><br> 
  23 <code>#include 
<iostream
></code><br> 
  24 <code>#include 
<vector
></code><br> 
  25 <code>#include 
<map
></code><br> 
  28 <a href=
"wxactivex_8h-source.html">Go to the source code of this file.
</a><table border=
0 cellpadding=
0 cellspacing=
0> 
  30 <tr><td colspan=
2><br><h2>Namespaces
</h2></td></tr> 
  31 <tr><td nowrap align=right valign=top
>namespace 
 </td><td valign=bottom
><a class=
"el" href=
"namespaceNS__wxActiveX.html">NS_wxActiveX
</a></td></tr> 
  32 <tr><td nowrap align=right valign=top
>namespace 
 </td><td valign=bottom
><b>std
</b></td></tr> 
  33 <tr><td colspan=
2><br><h2>Data Structures
</h2></td></tr> 
  34 <tr><td nowrap align=right valign=top
>class 
 </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html">wxAutoOleInterface
</a></td></tr> 
  35 <tr><td> </td><td><font size=-
1><em>Template class for smart interface handling.
</em> <a href=
"classwxAutoOleInterface.html#_details">More...
</a><em></em></font><br><br></td></tr> 
  36 <tr><td nowrap align=right valign=top
>class 
 </td><td valign=bottom
><a class=
"el" href=
"classwxActiveX.html">wxActiveX
</a></td></tr> 
  37 <tr><td> </td><td><font size=-
1><em>Main class for embedding a ActiveX control.
</em> <a href=
"classwxActiveX.html#_details">More...
</a><em></em></font><br><br></td></tr> 
  38 <tr><td nowrap align=right valign=top
>class 
 </td><td valign=bottom
><a class=
"el" href=
"classwxActiveX_1_1ParamX.html">ParamX
</a></td></tr> 
  39 <tr><td> </td><td><font size=-
1><em>General parameter and return type infoformation for Events, Properties and Methods.
</em> <a href=
"classwxActiveX_1_1ParamX.html#_details">More...
</a><em></em></font><br><br></td></tr> 
  40 <tr><td nowrap align=right valign=top
>class 
 </td><td valign=bottom
><a class=
"el" href=
"classwxActiveX_1_1FuncX.html">FuncX
</a></td></tr> 
  41 <tr><td> </td><td><font size=-
1><em>Type 
& Parameter info for Events and Methods.
</em> <a href=
"classwxActiveX_1_1FuncX.html#_details">More...
</a><em></em></font><br><br></td></tr> 
  42 <tr><td nowrap align=right valign=top
>class 
 </td><td valign=bottom
><a class=
"el" href=
"classwxActiveX_1_1PropX.html">PropX
</a></td></tr> 
  43 <tr><td> </td><td><font size=-
1><em>Type info for properties.
</em> <a href=
"classwxActiveX_1_1PropX.html#_details">More...
</a><em></em></font><br><br></td></tr> 
  44 <tr><td colspan=
2><br><h2>Defines
</h2></td></tr> 
  45 <tr><td nowrap align=right valign=top
><a name=
"a10" doxytag=
"wxactivex.h::EVT_ACTIVEX"></a> 
  46 #define
 </td><td valign=bottom
><a class=
"el" href=
"wxactivex_8h.html#a10">EVT_ACTIVEX
</a>(id, eventName, fn)
   DECLARE_EVENT_TABLE_ENTRY(RegisterActiveXEvent(wxT(eventName)), id, -
1, (wxObjectEventFunction) (wxEventFunction) (wxActiveXEventFunction) 
& fn, (wxObject *) NULL ),
</td></tr> 
  47 <tr><td> </td><td><font size=-
1><em>Event handle for events by name.
</em></font><br><br></td></tr> 
  48 <tr><td nowrap align=right valign=top
><a name=
"a11" doxytag=
"wxactivex.h::EVT_ACTIVEX_DISPID"></a> 
  49 #define
 </td><td valign=bottom
><a class=
"el" href=
"wxactivex_8h.html#a11">EVT_ACTIVEX_DISPID
</a>(id, eventDispId, fn)
   DECLARE_EVENT_TABLE_ENTRY(RegisterActiveXEvent(eventDispId), id, -
1, (wxObjectEventFunction) (wxEventFunction) (wxActiveXEventFunction) 
& fn, (wxObject *) NULL ),
</td></tr> 
  50 <tr><td> </td><td><font size=-
1><em>Event handle for events by DISPID (dispath id).
</em></font><br><br></td></tr> 
  51 <tr><td colspan=
2><br><h2>Functions
</h2></td></tr> 
  52 <tr><td nowrap align=right valign=top
><a name=
"a13" doxytag=
"wxactivex.h::OLEHResultToString"></a> 
  53 wxString
 </td><td valign=bottom
><a class=
"el" href=
"wxactivex_8h.html#a13">OLEHResultToString
</a> (HRESULT hr)
</td></tr> 
  54 <tr><td> </td><td><font size=-
1><em>Converts a std HRESULT to its error code. Hardcoded, by no means a definitive list.
</em></font><br><br></td></tr> 
  55 <tr><td nowrap align=right valign=top
><a name=
"a14" doxytag=
"wxactivex.h::GetIIDName"></a> 
  56 wxString
 </td><td valign=bottom
><a class=
"el" href=
"wxactivex_8h.html#a14">GetIIDName
</a> (REFIID riid)
</td></tr> 
  57 <tr><td> </td><td><font size=-
1><em>Returns the string description of a IID. Hardcoded, by no means a definitive list.
</em></font><br><br></td></tr> 
  59 <hr><h2>Define Documentation
</h2> 
  60 <a name=
"a3" doxytag=
"wxactivex.h::DECLARE_OLE_UNKNOWN"></a><p> 
  61 <table width=
"100%" cellpadding=
"2" cellspacing=
"0" border=
"0"> 
  64       <table cellpadding=
"0" cellspacing=
"0" border=
"0"> 
  66           <td class=
"md" nowrap 
valign=
"top"> #define DECLARE_OLE_UNKNOWN
</td> 
  67           <td class=
"md" valign=
"top">(
 </td> 
  68           <td class=
"md" nowrap 
valign=
"top">cls
 </td> 
  69           <td class=
"mdname1" valign=
"top" nowrap
>           </td> 
  70           <td class=
"md" valign=
"top">)
 </td> 
  71           <td class=
"md" nowrap
> 
  76 <table cellspacing=
5 cellpadding=
0 border=
0> 
  84 <b>Value:
</b><div class=
"fragment"><pre><span class=
"keyword">private
</span>:\
 
  85     <span class=
"keyword">class 
</span>TAutoInitInt\
 
  87         <span class=
"keyword">public
</span>:\
 
  89         TAutoInitInt() : l(
0) {}\
 
  91     TAutoInitInt refCount, lockCount;\
 
  93         <span class=
"keyword">static
</span> <span class=
"keywordtype">void
</span> _GetInterface(cls *self, REFIID iid, 
<span class=
"keywordtype">void
</span> **_interface, 
<span class=
"keyword">const
</span> <span class=
"keywordtype">char
</span> *
&desc);\
 
  94     <span class=
"keyword">public
</span>:\
 
  96         HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, 
<span class=
"keywordtype">void
</span> ** ppvObject);\
 
  97         ULONG STDMETHODCALLTYPE AddRef();\
 
  98         ULONG STDMETHODCALLTYPE Release();\
 
  99     ULONG STDMETHODCALLTYPE AddLock();\
 
 100         ULONG STDMETHODCALLTYPE ReleaseLock()
 
 103 Definition at line 
<a class=
"el" href=
"wxactivex_8h-source.html#l00184">184</a> of file 
<a class=
"el" href=
"wxactivex_8h-source.html">wxactivex.h
</a>.    
</td> 
 106 <a name=
"a5" doxytag=
"wxactivex.h::DEFINE_OLE_BASE"></a><p> 
 107 <table width=
"100%" cellpadding=
"2" cellspacing=
"0" border=
"0"> 
 110       <table cellpadding=
"0" cellspacing=
"0" border=
"0"> 
 112           <td class=
"md" nowrap 
valign=
"top"> #define DEFINE_OLE_BASE
</td> 
 113           <td class=
"md" valign=
"top">(
 </td> 
 114           <td class=
"md" nowrap 
valign=
"top">cls
 </td> 
 115           <td class=
"mdname1" valign=
"top" nowrap
>           </td> 
 116           <td class=
"md" valign=
"top">)
 </td> 
 117           <td class=
"md" nowrap
> 
 122 <table cellspacing=
5 cellpadding=
0 border=
0> 
 130 <b>Value:
</b><div class=
"fragment"><pre><span class=
"keywordtype">void
</span> cls::_GetInterface(cls *self, REFIID iid, 
<span class=
"keywordtype">void
</span> **_interface, 
<span class=
"keyword">const
</span> <span class=
"keywordtype">char
</span> *
&desc)\
 
 136 Definition at line 
<a class=
"el" href=
"wxactivex_8h-source.html#l00264">264</a> of file 
<a class=
"el" href=
"wxactivex_8h-source.html">wxactivex.h
</a>.    
</td> 
 139 <a name=
"a6" doxytag=
"wxactivex.h::OLE_INTERFACE"></a><p> 
 140 <table width=
"100%" cellpadding=
"2" cellspacing=
"0" border=
"0"> 
 143       <table cellpadding=
"0" cellspacing=
"0" border=
"0"> 
 145           <td class=
"md" nowrap 
valign=
"top"> #define OLE_INTERFACE
</td> 
 146           <td class=
"md" valign=
"top">(
 </td> 
 147           <td class=
"md" nowrap 
valign=
"top">_iid,         
<tr> 
 150           <td class=
"md" nowrap
>_type
 </td> 
 151           <td class=
"mdname1" valign=
"top" nowrap
>           </td> 
 152           <td class=
"md" valign=
"top">)
 </td> 
 153           <td class=
"md" nowrap
> 
 158 <table cellspacing=
5 cellpadding=
0 border=
0> 
 166 <b>Value:
</b><div class=
"fragment"><pre><span class=
"keywordflow">if
</span> (IsEqualIID(iid, _iid))\
 
 168         WXOLE_TRACE(
<span class=
"stringliteral">"Found Interface <"</span> # _type 
<span class=
"stringliteral">">"</span>);\
 
 169         *_interface = (IUnknown *) (_type *) self;\
 
 171         <span class=
"keywordflow">return
</span>;\
 
 175 Definition at line 
<a class=
"el" href=
"wxactivex_8h-source.html#l00270">270</a> of file 
<a class=
"el" href=
"wxactivex_8h-source.html">wxactivex.h
</a>.    
</td> 
 178 <a name=
"a8" doxytag=
"wxactivex.h::OLE_INTERFACE_CUSTOM"></a><p> 
 179 <table width=
"100%" cellpadding=
"2" cellspacing=
"0" border=
"0"> 
 182       <table cellpadding=
"0" cellspacing=
"0" border=
"0"> 
 184           <td class=
"md" nowrap 
valign=
"top"> #define OLE_INTERFACE_CUSTOM
</td> 
 185           <td class=
"md" valign=
"top">(
 </td> 
 186           <td class=
"md" nowrap 
valign=
"top">func
 </td> 
 187           <td class=
"mdname1" valign=
"top" nowrap
>           </td> 
 188           <td class=
"md" valign=
"top">)
 </td> 
 189           <td class=
"md" nowrap
> 
 194 <table cellspacing=
5 cellpadding=
0 border=
0> 
 202 <b>Value:
</b><div class=
"fragment"><pre><span class=
"keywordflow">if
</span> (func(self, iid, _interface, desc))\
 
 204         <span class=
"keywordflow">return
</span>;\
 
 208 Definition at line 
<a class=
"el" href=
"wxactivex_8h-source.html#l00281">281</a> of file 
<a class=
"el" href=
"wxactivex_8h-source.html">wxactivex.h
</a>.    
</td> 
 211 <hr><address style=
"align: right;"><small>Generated on Tue Apr 
1 14:
51:
12 2003 for wxActiveX by
 
 212 <a href=
"http://www.doxygen.org/index.html"> 
 213 <img src=
"doxygen.png" alt=
"doxygen" align=
"middle" border=
0  
 214 width=
110 height=
53></a>1.3-rc3 
</small></address>