IAPI::EnumChildFromParentWindow

property EnumChildFromParentWindow.

Retrieves a list of child window handles from a parent window.

 

HRESULT EnumChildFromParentWindow(
  long hWndParent,
  BSTR ChildClassName,
  BSTR *pVal
);

Parameters

hWndParent

[in] .   Handle of parent window

ChildClassName

[in,defaultvalue("")]

. Empty string will list all child window handles.

. Specifies a child window class name or one of the predefined ones:

         - BUTTON
         - COMBOBOX
         - EDIT
         - LISTBOX

         - RichEdit

         - RICHEDIT_CLASS

         - SCROLLBAR

         - STATIC

pVal

[out, retval]

The returned value is NULL (vbNullString) or a multi-value string

of window handles with | as separator (e.g "1256|90786|7677").

If not NULL, the string must be freed by FreeBSTR.

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