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]

WDialog:OnInitDialog() Method
Perform run-time initialisation of a dialog
------------------------------------------------------------------------------

Syntax
<oWnd>:OnInitDialog( <hCtrlFocus>, <nPtr> )   -->   nRet  (normally 1)

Arguments
<hCtrlFocus> is the window handle of the first control that
could be given the input focus.

<nPtr> is not normally used.

Returns
A number indicating whether the focus should be set
automatically.  Unless you've set the focus yourself, return
one (1).

Description
This method can be used to perform run-time initialisation of
a dialog.  It is called as a result of the receipt of the
WM_INITDIALOG message, so the dialog has been created but is
not yet visible.  It is invoked immediately after the
PreInitDialog() method.

The WDialog class invokes this method in each of the controls
it knows about, i.e. those added by WDialog:Add(), to allow
them to perform their own run-time initialisation.

Example


See Also: WDialog:Add() WControlWindow:OnInitDialog()

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