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:Create() Method
Create a window
------------------------------------------------------------------------------

Syntax
<oWnd>:Create( [ <cTitle> ] , [ <hMenu> ] , [ <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 (used as the contents for an
edit control).  The default is "MDI Frame".

<hMenu> is an optional menu handle.

<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 frame window, whose
window handle is then stored in the hWnd instance variable.
In practice, this method is not often used directly, as the
Init() methods in most descendant classes call 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().

An MDI client is also created, with the frame as its parent.
If there is a menu, the position of the "Window" menu item is
supposed to be immediately before the last item (which should
be the "Help" item).  This position is passed to the MDI client.

Example


See Also: WMDIFrame:Init() CreateWindow()

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