GetOuterWindow

From SCAR Divi Manual
Revision as of 12:46, 7 August 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function GetOuterWindow(const Wnd: Hwnd): Hwnd; </source> ==Availability== SCAR Divi 3.35 > Current ==Description== Returns...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function GetOuterWindow(const Wnd: Hwnd): Hwnd;

Availability

SCAR Divi 3.35 > Current

Description

Returns the handle to the outer most parent window which is not the desktop for a window referenced by a handle in Wnd. If the given window does not exist, the function returns 0. If the window is the outer most parent window, the given handle is returned.

Example

var
  Client: TSCARClient;

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

See Also