Window::GetDlgItem

Description

You can use the GetDlgItem function with any parent-child window pair, not just with dialog boxes. As long as the parent window and the child window has a unique identifier, GetDlgItem returns a valid child window.

Syntax

Window GetDlgItem( int nChildWinID )

Parameters

nChildWinID
[input] Specifies the identifier of the control to be retrieved

Return

If the function succeeds, the return is the window of the specified control.

If the function fails, the return value is NULL, indicating an invalid dialog or a nonexistent control.

Examples

Remark

See Also

header to Include

origin.h