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 - <b>getdlgitem()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetDlgItem()
Get the handle of a control in a dialog box
------------------------------------------------------------------------------

Syntax
GetDlgItem( <hWndDlg>, <nId> )   -->   hWnd

Arguments
<hWndDlg> is the handle of the dialog window.

<nId> is the numeric id of the control.

Returns
If successful, this function returns the window handle of the
control.  Otherwise, it returns zero (0).

Description
Although usually used to get the window handle of a control
that's part of a dialog box, this function can also get the
window handle of any child window (whose id would have been
specified in the CreateWindow() call, using the hMenu
parameter) of a specified parent window.

Note:  if you're handling a WM_COMMAND message in a dialog,
there's no need to call this function, as the low word of
nlParam specifies the id, i.e. C4W_LoWord( nlParam ).

Example
hChild = GetDlgItem( hWnd, nChildId )


See Also: DialogBox() GetDlgCtrlID()

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