Difference between revisions of "GetWindowSize"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure GetWindowSize(const Wnd: Hwnd; out Width, Height: Integer); </source> ==Availability== SCAR Divi 3.35 > Current =...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
==Description== | ==Description== | ||
− | Returns the dimensions of a window specified by '''Wnd'' in '''Width''' and '''Height'''. | + | Returns the dimensions of a window specified by '''Wnd''' in '''Width''' and '''Height'''. If the given window does not exist 0 is returned for both dimensions. An extended version of this function is available as [[GetWindowSizeEx]]. |
==Example== | ==Example== | ||
Line 23: | Line 23: | ||
==See Also== | ==See Also== | ||
+ | *[[GetWindowSizeEx]] | ||
*[[SetWindowSize]] | *[[SetWindowSize]] | ||
*[[GetWindowBox]] | *[[GetWindowBox]] | ||
− | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Window Functions]] | [[Category:Window Functions]] |
Latest revision as of 15:57, 10 November 2012
Definition
procedure GetWindowSize(const Wnd: Hwnd; out Width, Height: Integer);
Availability
SCAR Divi 3.35 > Current
Description
Returns the dimensions of a window specified by Wnd in Width and Height. If the given window does not exist 0 is returned for both dimensions. An extended version of this function is available as GetWindowSizeEx.
Example
var W, H: Integer; begin GetWindowSize(GetDesktopWindow, W, H); WriteLn(W); WriteLn(H); end.