Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WMDIFrame:CreateChild() Method
Create an MDI child window
------------------------------------------------------------------------------

Syntax
<oWnd>:CreateChild( [ <oChild> ] , [ <cTitle> ] , [ <nId> ] ,
                    [ <nX> ] , [ <nY> ] , [ <nWidth> ] , [ <nHeight> ] ,
                    [ <cParam> ] )   -->   self

Arguments
See the WMDIClient:CreateChild() method, which is called by
this method.

<oChild> is either an existing MDI child object (with or
without a window), or NIL.  If it is NIL, an MDI child is
created.  If it is a child object without a window, the
child's Create() method is called (and presumably creates a
window).

<cTitle> is an optional string defining the caption (title
bar) of the window to be created.  The default is "MDI Child".

<nId> is passed to the MDI child's Create() method, if
<oChild> is NIL or has no window.

<nX>, <nY> specify the left, top of the window in pixels,
defaulting to CW_USEDEFAULT.

<nWidth>, <nHeight> specify the size of the window in pixels.

<cParam> optionally specifies initialisation data to be used
by the window.

Returns
SELF.

Description
This method can be used to create an MDI child window, whose
window handle is then stored in the child's hWnd instance
variable.

This method relies on the MDI client to do the work.

Example


See Also: WMDIClient WMDIClient:CreateChild() CreateWindow()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson