ActivateWindow

From SCAR Divi Manual
Revision as of 13:29, 7 August 2012 by Freddy (talk | contribs) (Undo revision 1636 by Freddy (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

procedure ActivateWindow(const Wnd: Hwnd);

Availability

SCAR Divi 3.35 > Current

Description

Brings a window specified by the window handle Wnd to the foreground.

Example

var
  Wnds: THwndArray;

begin
  Wnds := FindWindowsEx(GetDesktopWindow, 'notepad', '', False, False, True);
  if Length(Wnds) > 0 then
    ActivateWindow(Wnds[0]);
end.

See Also