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>getdlgctrlid()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetDlgCtrlID()
Get the numeric id of a child window
------------------------------------------------------------------------------

Syntax
GetDlgCtrlID( <hWnd> )   -->   nId

Arguments
<hWnd> is the handle of the child window whose id is wanted.

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

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

Note:  if you're handling a WM_COMMAND message, there's no
need to call this function, as the nwParam specifies the id.

Example
if  GetDlgCtrlID( hDlg ) == nYourId
     // . . .  ( found it )
endif


See Also: CreateWindow() DialogBox() GetDlgItem()

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