GetOwnerWindow method


Available for all Control objects.

Prototype

GetOwnerWindow Proto hWnd:HWND

Syntax

Invoke GetOwnerWindow, hWnd

Function

Gets the owner window for a control object.

Parameters

hWnd

Handle to the control object.

Return value

Eax returns the handle to the owner window, or NULL if hWnd is not a control object.


REMARKS: As a control object may be a child of a container control as well as a window object, call this method to find out which owner window the child control belongs to, that is, the window object where it is inside.