IAPI::GetDlgItem

property GetDlgItem.

Retrieves the handle of a control window (child) from a dialog box or a parent window.

 

HRESULT GetDlgItem(
  long hDlg,
  long nIDDlgItem,
  long *pVal
);

Parameters

hDlg

[in] .   Handle of a dialog box or a parent window

nIDDlgItem

[in] .   Identifier of the control window

pVal

[out, retval] The returned value is the handle of the control window

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI