Available for all Control objects.
GetWindowItem Proto hWnd:HWND, lItemID:LONG
Invoke GetWindowItem, hWnd, lItemID
Returns the handle for the specified child control.
Handle to the owner window.
Identifier of the child control (belonging to the owner window) whose handle is to be retrieved.
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.