COleControlContainer::GetDlgItem

Retrieves a pointer to the specified control or child window in a dialog box or other window.

virtual CWnd* GetDlgItem(
   int nID 
) const;
virtual void GetDlgItem(
   int nID,
   HWND* phWnd 
) const;

Parameters

  • nID
    Identifier of the dialog item to retrieve.

  • phWnd
    A pointer to the handle of the specified dialog item's window object.

Return Value

A pointer to the dialog item's window.

Requirements

Header: afxocc.h

See Also

Reference

COleControlContainer Class

Hierarchy Chart

Other Resources

COleControlContainer Members