GetParentWindow

From SCAR Divi Manual
Jump to: navigation, search

Definition

function GetParentWindow(const Wnd: Hwnd): Hwnd;

Availability

SCAR Divi 3.35 > Current

Description

Returns the handle to the parent window of the window specified by the handle in Wnd. If the window handle does not correspond to an existing window or does not have a parent, the function returns 0.

Example

var
  Client: TSCARClient;

begin
  Client := GetClient;
  if Client is TSCARWindowClient then
    WriteLn(GetWindowClass(GetParentWindow(TSCARWindowClient(Client).Handle)));
end.

See Also