GetParentWindow

From SCAR Divi Manual
Revision as of 12:35, 7 August 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function GetParentWindow(const Wnd: Hwnd): Hwnd; </source> ==Availability== SCAR Divi 3.35 > Current ==Description== Return...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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