1 \section{wxactivex.h File Reference
} 
   2 \label{wxactivex_8h
}\index{wxactivex.h@
{wxactivex.h
}} 
   5 \subsection{Detailed Description
} 
   6 implements 
{\bf wx\-Active\-X
} window class and OLE tools
 
  10 Definition in file 
{\bf wxactivex.h
}.
 
  12 {\tt \#include $<$wx/setup.h$>$
}\par 
  13 {\tt \#include $<$wx/wx.h$>$
}\par 
  14 {\tt \#include $<$wx/variant.h$>$
}\par 
  15 {\tt \#include $<$wx/datetime.h$>$
}\par 
  16 {\tt \#include $<$oleidl.h$>$
}\par 
  17 {\tt \#include $<$exdisp.h$>$
}\par 
  18 {\tt \#include $<$docobj.h$>$
}\par 
  19 {\tt \#include $<$iostream$>$
}\par 
  20 {\tt \#include $<$vector$>$
}\par 
  21 {\tt \#include $<$map$>$
}\par 
  22 \subsection*
{Namespaces
} 
  23 \begin{CompactItemize
} 
  25 namespace 
{\bf NS
\_\-wx\-Active\-X
} 
  29 \subsection*
{Data Structures
} 
  30 \begin{CompactItemize
} 
  32 class 
{\bf wx\-Auto\-Ole\-Interface
} 
  33 \begin{CompactList
}\small\item\em Template class for smart interface handling.
\item\end{CompactList
}\item  
  34 class 
{\bf wx\-Active\-X
} 
  35 \begin{CompactList
}\small\item\em Main class for embedding a Active\-X control.
\item\end{CompactList
}\item  
  37 \begin{CompactList
}\small\item\em General parameter and return type infoformation for Events, Properties and Methods.
\item\end{CompactList
}\item  
  39 \begin{CompactList
}\small\item\em Type \& Parameter info for Events and Methods.
\item\end{CompactList
}\item  
  41 \begin{CompactList
}\small\item\em Type info for properties.
\item\end{CompactList
}\end{CompactItemize
} 
  43 \begin{CompactItemize
} 
  45 \index{EVT_ACTIVEX@
{EVT
\_\-ACTIVEX
}!wxactivex.h@
{wxactivex.h
}}\index{wxactivex.h@
{wxactivex.h
}!EVT_ACTIVEX@
{EVT
\_\-ACTIVEX
}} 
  46 \#define 
{\bf EVT
\_\-ACTIVEX
}(id, event\-Name, fn)\ DECLARE
\_\-EVENT
\_\-TABLE
\_\-ENTRY(Register\-Active\-XEvent(wx\-T(event\-Name)), id, -
1, (wx\-Object\-Event\-Function) (wx\-Event\-Function) (wx\-Active\-XEvent\-Function) \& fn, (wx\-Object $
\ast$) NULL ),
\label{wxactivex_8h_a10
} 
  48 \begin{CompactList
}\small\item\em Event handle for events by name.
\item\end{CompactList
}\item  
  49 \index{EVT_ACTIVEX_DISPID@
{EVT
\_\-ACTIVEX
\_\-DISPID
}!wxactivex.h@
{wxactivex.h
}}\index{wxactivex.h@
{wxactivex.h
}!EVT_ACTIVEX_DISPID@
{EVT
\_\-ACTIVEX
\_\-DISPID
}} 
  50 \#define 
{\bf EVT
\_\-ACTIVEX
\_\-DISPID
}(id, event\-Disp\-Id, fn)\ DECLARE
\_\-EVENT
\_\-TABLE
\_\-ENTRY(Register\-Active\-XEvent(event\-Disp\-Id), id, -
1, (wx\-Object\-Event\-Function) (wx\-Event\-Function) (wx\-Active\-XEvent\-Function) \& fn, (wx\-Object $
\ast$) NULL ),
\label{wxactivex_8h_a11
} 
  52 \begin{CompactList
}\small\item\em Event handle for events by DISPID (dispath id).
\item\end{CompactList
}\end{CompactItemize
} 
  53 \subsection*
{Functions
} 
  54 \begin{CompactItemize
} 
  56 \index{OLEHResultToString@
{OLEHResultToString
}!wxactivex.h@
{wxactivex.h
}}\index{wxactivex.h@
{wxactivex.h
}!OLEHResultToString@
{OLEHResultToString
}} 
  57 wx\-String 
{\bf OLEHResult\-To\-String
} (HRESULT hr)
\label{wxactivex_8h_a13
} 
  59 \begin{CompactList
}\small\item\em Converts a std HRESULT to its error code. Hardcoded, by no means a definitive list.
\item\end{CompactList
}\item  
  60 \index{GetIIDName@
{GetIIDName
}!wxactivex.h@
{wxactivex.h
}}\index{wxactivex.h@
{wxactivex.h
}!GetIIDName@
{GetIIDName
}} 
  61 wx\-String 
{\bf Get\-IIDName
} (REFIID riid)
\label{wxactivex_8h_a14
} 
  63 \begin{CompactList
}\small\item\em Returns the string description of a IID. Hardcoded, by no means a definitive list.
\item\end{CompactList
}\end{CompactItemize
} 
  66 \subsection{Define Documentation
} 
  67 \index{wxactivex.h@
{wxactivex.h
}!DECLARE_OLE_UNKNOWN@
{DECLARE
\_\-OLE
\_\-UNKNOWN
}} 
  68 \index{DECLARE_OLE_UNKNOWN@
{DECLARE
\_\-OLE
\_\-UNKNOWN
}!wxactivex.h@
{wxactivex.h
}} 
  69 \subsubsection{\setlength{\rightskip}{0pt plus 
5cm
}\#define DECLARE
\_\-OLE
\_\-UNKNOWN(cls)
}\label{wxactivex_8h_a3
} 
  74 \footnotesize\begin{verbatim
}private:\
 
  79         TAutoInitInt() : l(
0) 
{}\
 
  81     TAutoInitInt refCount, lockCount;\
 
  83         static void _GetInterface(cls *self, REFIID iid, void **_interface, const char *&desc);\
 
  86         HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void ** ppvObject);\
 
  87         ULONG STDMETHODCALLTYPE AddRef();\
 
  88         ULONG STDMETHODCALLTYPE Release();\
 
  89     ULONG STDMETHODCALLTYPE AddLock();\
 
  90         ULONG STDMETHODCALLTYPE ReleaseLock()
 
  91 \end{verbatim
}\normalsize  
  94 Definition at line 
184 of file wxactivex.h.
\index{wxactivex.h@
{wxactivex.h
}!DEFINE_OLE_BASE@
{DEFINE
\_\-OLE
\_\-BASE
}} 
  95 \index{DEFINE_OLE_BASE@
{DEFINE
\_\-OLE
\_\-BASE
}!wxactivex.h@
{wxactivex.h
}} 
  96 \subsubsection{\setlength{\rightskip}{0pt plus 
5cm
}\#define DEFINE
\_\-OLE
\_\-BASE(cls)
}\label{wxactivex_8h_a5
} 
 101 \footnotesize\begin{verbatim
}void cls::_GetInterface(cls *self, REFIID iid, void **_interface, const char *&desc)\
 
 105 \end{verbatim
}\normalsize  
 108 Definition at line 
264 of file wxactivex.h.
\index{wxactivex.h@
{wxactivex.h
}!OLE_INTERFACE@
{OLE
\_\-INTERFACE
}} 
 109 \index{OLE_INTERFACE@
{OLE
\_\-INTERFACE
}!wxactivex.h@
{wxactivex.h
}} 
 110 \subsubsection{\setlength{\rightskip}{0pt plus 
5cm
}\#define OLE
\_\-INTERFACE(
\_\-iid, 
\_\-type)
}\label{wxactivex_8h_a6
} 
 115 \footnotesize\begin{verbatim
}if (IsEqualIID(iid, _iid))\
 
 117         WXOLE_TRACE("Found Interface <" # _type ">");\
 
 118         *_interface = (IUnknown *) (_type *) self;\
 
 122 \end{verbatim
}\normalsize  
 125 Definition at line 
270 of file wxactivex.h.
\index{wxactivex.h@
{wxactivex.h
}!OLE_INTERFACE_CUSTOM@
{OLE
\_\-INTERFACE
\_\-CUSTOM
}} 
 126 \index{OLE_INTERFACE_CUSTOM@
{OLE
\_\-INTERFACE
\_\-CUSTOM
}!wxactivex.h@
{wxactivex.h
}} 
 127 \subsubsection{\setlength{\rightskip}{0pt plus 
5cm
}\#define OLE
\_\-INTERFACE
\_\-CUSTOM(func)
}\label{wxactivex_8h_a8
} 
 132 \footnotesize\begin{verbatim
}if (func(self, iid, _interface, desc))\
 
 136 \end{verbatim
}\normalsize  
 139 Definition at line 
281 of file wxactivex.h.