Difference between revisions of "GetParentWindow"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function GetParentWindow(const Wnd: Hwnd): Hwnd; </source> ==Availability== SCAR Divi 3.35 > Current ==Description== Return...")
 
(No difference)

Latest revision as of 13:35, 7 August 2012

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