Difference between revisions of "ActivateWindow"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure ActivateWindow(const Wnd: Hwnd); </source> ==Availability== SCAR Divi 3.35 > Current ==Description== Brings a win...") |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 21: | Line 21: | ||
end. | end. | ||
</source> | </source> | ||
| + | |||
| + | ==See Also== | ||
| + | |||
| + | *[[GetActiveWindow]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Window Functions]] | [[Category:Window Functions]] | ||
Latest revision as of 12:29, 7 August 2012
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.