GetWindowItem method


Available for all Control objects.

Prototype

GetWindowItem Proto hWnd:HWND, lItemID:LONG

Syntax

Invoke GetWindowItem, hWnd, lItemID

Function

Returns the handle for the specified child control.

Parameters

hWnd

Handle to the owner window.

lItemID

Identifier of the child control (belonging to the owner window) whose handle is to be retrieved.

Return value

Eax returns the handle to the specified child control, or NULL.


REMARKS
: Each child control inside a window object has an identifier (see
Getting child control identifiers) which can be used to retrieve its handle by calling this method. For the first argument, you can pass the handle to the owner window or to any other control being inside, but if the object whose handle is to be retrieved is a thread, you can only pass the handle to the owner window. Otherwise NULL will be returned.