CWnd::GetDlgCtrlID

Syntax

int GetDlgCtrlID() const;

Remarks

Returns the CWnd's ID value if CWnd is a child window.

Since top-level windows do not have an ID value, the return value of this function is invalid if the CWnd is a top-level window.

Return Value

The numeric identifier of the CWnd child window if the function is successful. If the function fails, the return value is NULL.

See Also

::GetDlgCtrlID