Difference between revisions of "SetWindowTopMost"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure SetOnTop(Window: Integer; Top: Boolean); </source> ==Availability== SCAR Divi 3.12 > Current ==Description== This fu...") |
(→Description) |
||
Line 8: | Line 8: | ||
==Description== | ==Description== | ||
− | This function adds the HWND_TOPMOST flag to a window specified by it's handle '''Window''' if '''Top''' is [[true]]. If '''Top''' is [[false]], it will add the flag | + | This function adds the HWND_TOPMOST flag to a window specified by it's handle '''Window''' if '''Top''' is [[true]]. If '''Top''' is [[false]], it will add the flag HWND_NOTOPMOST. |
===Internal Flags<ref>[http://msdn.microsoft.com/en-us/library/ms633545%28v=vs.85%29.aspx SetWindowPos at MSDN]</ref>=== | ===Internal Flags<ref>[http://msdn.microsoft.com/en-us/library/ms633545%28v=vs.85%29.aspx SetWindowPos at MSDN]</ref>=== |
Revision as of 10:19, 27 June 2011
Contents
Definition
procedure SetOnTop(Window: Integer; Top: Boolean);
Availability
SCAR Divi 3.12 > Current
Description
This function adds the HWND_TOPMOST flag to a window specified by it's handle Window if Top is true. If Top is false, it will add the flag HWND_NOTOPMOST.
Internal Flags[1]
- HWND_TOPMOST: Places the window above all non-topmost windows. The window maintains its topmost position even when it is deactivated.
- HWND_NOTOPMOST: Places the window above all non-topmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a non-topmost window.
Example
begin SetOnTop(GetClientWindowHandle, True); end.