CWnd::GetDlgCtrlID

This method retrieves the window or control identifier value for any child window. The child window does not have to be a control in a dialog box. Since top-level windows do not have an identifier value, the return value of this method is invalid if the CWnd is a top-level window.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

int GetDlgCtrlID( ) const;