GetOuterWindow
From SCAR Divi Manual
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.