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]

WFrameWindow:Init() Method
Construct a frame window object
------------------------------------------------------------------------------

Syntax
WFrameWindow{ [ <oParent> ] , [ <cTitle> ] , [ <cnMenuId> ] ,
              [ <lCreate> ] , [ <lNeedRegClass> ] }   -->   SELF

Arguments
<oParent> optionally specifies the parent (owner) of the
window.  Just as <oParent> is the owner of self, the parent's
hWnd will be the actual owner of self's window (if it has a
window on the screen).  If this parameter is NIL, the frame
window object will have no owner and its screen window will be
a top-level overlapped window (also with no owner).

<cTitle> specifies the caption for the title bar of the window
(if any) to be created.

<cnMenuId> is an optional menu id.  If it is a string, it is
taken to be the name of a resource menu.  If it is a number,
it is taken to be a menu handle.  The default (NIL) is to set
no menu.  Usually this is because you assign a menu after the
window has been created, normally as a result of the MENU
command.

<lCreate> specifies whether the window object's Create()
method is to be invoked immediately.  Usually you want the
default (.T.).

<lNeedRegClass> can be .F. to prevent a window class being
automatically detected/registered.  Usually you want the
default (.T.).

Returns
SELF.

Description
This method initialises a frame window object.  By default,
this will also create a window on the screen.

Note: the order of <cTitle> and  <cnMenuId>  is the opposite
of that needed for WControlWindow's <nId> and <cTitle>,
reflecting the fact that <cnMenuId> and later parameters are
usually omitted for a frame window, whereas <nId> is usually
specified for controls and <cTitle> is not.

Example
// Using a sub-class:
oWnd := WSDIWindow{ "Clip-4-Win Window" }


See Also: WFrameWindow:Create() WSDIWindow WMDIFrame WMDIChild

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