win32ui.CreateControl

PyCWnd = CreateControl(classId, windowName , style , rect , parent , id , obPersist , bStorage , licKey )

Creates an OLE control.

Parameters

classId : string

The class ID for the window.

windowName : string

The title for the window.

style : int

The style for the control.

rect : (left, top, right, bottom)

The default position of the window.

parent : PyCWnd

The parent window

id : int

The child ID for the view

obPersist=None : object

Place holder for future support.

bStorage=FALSE : int

Not used.

licKey=None : string

The licence key for the control.

Return Value

The result is a PyCWnd (or derived) object, or a win32ui.error exception is raised.