[python-win32] Re: number of arguments to CreateControl

Don Dwiggins d.l.dwiggins@computer.org
Mon, 30 Dec 2002 02:48:01 +0000 (UTC)

Thomas Barket writes:
> ive noticed that the CreateControl, used
> to instantiate activex controls, permits only 6
> arguments instead of the usual 9.  

> the class Control (in activex.py) has the following:

>    def CreateControl(self, windowTitle, style, rect,
> parent, id):
>       clsid = str(self._GetControlCLSID())
>       self.__dict__["_obj_"] =
> win32ui.CreateControl(clsid, windowTitle, style, rect,
> parent, id)

> although in the win32win.cpp file, the
> !pWnd->CreateControl(clsid, szWndName, style, rect,
> pWndParent, id, NULL, bStorage, T2OLE(szLicKey)) call
> attempts to use all 9 arguments, and is already
> written to correctly parse these extra parameters from
> python.

Just a thought: are the "missing" arguments declared "out" in the interface?
If so, it's right that they're not passed in -- the win32 UI package will
return a sequence from a call to that function, which includes the values of
all "in/out" and "out" arguments.

If that's not the case, just ignore my ramblings...

Don Dwiggins				"Solvitur Ambulando"