parameters: (self, parent, axID, wxid=-1, pos=wx.DefaultPosition, 
                   size=wx.DefaultSize, style=0, name="activeXCtrl")
docstring: All parameters are like those used in normal wx.Windows with
          the addition of axID which is a string that is either a ProgID
          or a CLSID used to identify the ActiveX control.
docstring_summary: All parameters are like those used in normal wx.Windows with
          the addition of axID which is a string that is either a ProgID
          or a CLSID used to identify the ActiveX control.
docstring_tokens: All parameters are like those used in normal wx . Windows with the addition of axID which is a string that is either a ProgID or a CLSID used to identify the ActiveX control .
function: def __init__(self, parent, axID, wxid=-1, pos=wx.DefaultPosition, 
                   size=wx.DefaultSize, style=0, name="activeXCtrl"):
          """
          All parameters are like those used in normal wx.Windows with
          the addition of axID which is a string that is either a ProgID
          or a CLSID used to identify the ActiveX control.
          """
          pos = wx.Point(*pos)    # in case the arg is a tuple
          size = wx.Size(*size)   # ditto
  
          x = pos.x
          y = pos.y
          if x == -1: x = CW_USEDEFAULT
          if y == -1: y = 20
          w = size.width
          h = size.height
          if w == -1: w = 20
          if h == -1: h = 20
          
          # create the control
          atl.AtlAxWinInit()
          hInstance = kernel32.GetModuleHandleA(None)
          hwnd = user32.CreateWindowExA(0, "AtlAxWin", axID,
                                        WS_CHILD | WS_VISIBLE 
                                        | WS_CLIPCHILDREN | WS_CLIPSIBLINGS,
                                        x,y, w,h, parent.GetHandle(), None, 
                                        hInstance, 0)
          assert hwnd != 0
          
          # get the Interface for the Ax control
          unknown = ct.POINTER(comtypes.IUnknown)()
          res = atl.AtlAxGetControl(hwnd, ct.byref(unknown))
          assert res == hr.S_OK
          self._ax = cc.GetBestInterface(unknown)
          
          # Fetch the interface for IOleInPlaceActiveObject. We'll use this
          # later to call its TranslateAccelerator method so the AX Control can
          # deal with things like tab traversal and such within itself.
          self.ipao = self._ax.QueryInterface(myole4ax.IOleInPlaceActiveObject)
          
          # Use this object as the event sink for the ActiveX events
          self._evt_connections = []
          self.AddEventSink(self)
          
          # Turn the window handle into a wx.Window and set this object to be that window
          win = wx.PyAxBaseWindow_FromHWND(parent, hwnd)
          self.PostCreate(win)
          
          # Set some wx.Window properties
          if wxid == wx.ID_ANY: 
              wxid = wx.Window.NewControlId()
          self.SetId(wxid)
          self.SetName(name)
          self.SetMinSize(size)
          
          self.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus)
          self.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus)
          self.Bind(wx.EVT_WINDOW_DESTROY, self.OnDestroyWindow)
function_tokens: def __init__ ( self , parent , axID , wxid = - 1 , pos = wx . DefaultPosition , size = wx . DefaultSize , style = 0 , name = "activeXCtrl" ) : pos = wx . Point ( * pos ) # in case the arg is a tuple size = wx . Size ( * size ) # ditto x = pos . x y = pos . y if x == - 1 : x = CW_USEDEFAULT if y == - 1 : y = 20 w = size . width h = size . height if w == - 1 : w = 20 if h == - 1 : h = 20 # create the control atl . AtlAxWinInit ( ) hInstance = kernel32 . GetModuleHandleA ( None ) hwnd = user32 . CreateWindowExA ( 0 , "AtlAxWin" , axID , WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS , x , y , w , h , parent . GetHandle ( ) , None , hInstance , 0 ) assert hwnd != 0 # get the Interface for the Ax control unknown = ct . POINTER ( comtypes . IUnknown ) ( ) res = atl . AtlAxGetControl ( hwnd , ct . byref ( unknown ) ) assert res == hr . S_OK self . _ax = cc . GetBestInterface ( unknown ) # Fetch the interface for IOleInPlaceActiveObject. We'll use this # later to call its TranslateAccelerator method so the AX Control can # deal with things like tab traversal and such within itself. self . ipao = self . _ax . QueryInterface ( myole4ax . IOleInPlaceActiveObject ) # Use this object as the event sink for the ActiveX events self . _evt_connections = [ ] self . AddEventSink ( self ) # Turn the window handle into a wx.Window and set this object to be that window win = wx . PyAxBaseWindow_FromHWND ( parent , hwnd ) self . PostCreate ( win ) # Set some wx.Window properties if wxid == wx . ID_ANY : wxid = wx . Window . NewControlId ( ) self . SetId ( wxid ) self . SetName ( name ) self . SetMinSize ( size ) self . Bind ( wx . EVT_SET_FOCUS , self . OnSetFocus ) self . Bind ( wx . EVT_KILL_FOCUS , self . OnKillFocus ) self . Bind ( wx . EVT_WINDOW_DESTROY , self . OnDestroyWindow )