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]

WMDIChild:Create() Method
Create an MDI child window
------------------------------------------------------------------------------

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

Arguments
Also see the CreateWindow() function, which is called by this method.

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

<nId> is reserved for future use.

<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.
The default is a size chosen automatically by the MDI client.

<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 hWnd instance variable.
In practice, this method is not often used directly, as the
Init() method calls Create() by default.  However, if you
need to do some extra initialisation, for example, it can be
useful to stop the sub-class Init() calling this method (by
specifying <lCreate> as .F.), carrying out further work, and
finally calling Create().

If you call the Init() method yourself, be sure to inform the
MDI client object using its CreateChild() method, or the
CreateChild() method in the WMDIFrame class.

The actual window creation is done by the MDI client.

Example


See Also: WMDIChild:Init() WMDIClient CreateWindow()

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