Difference between revisions of "GetOuterWindow"

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

Latest revision as of 12:46, 7 August 2012

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