CWindow::GetDlgItem

This method retrieves the specified child window.

Syntax

HWND GetDlgItem( int nID ) const;

At a Glance

Header file: Atlwin.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

Remarks

The GetDlgItem method only works for immediate child controls of a dialog box—it doesn't search through nested dialog boxes.

See Also

CWindow Overview, CWindow Methods