How can I get the current top window of the system?
But not active or having a focus, but the upper one.
For example, set using the SetWindowPos API function with the second parameter HWND_TOPMOST .
How can I get the current top window of the system?
But not active or having a focus, but the upper one.
For example, set using the SetWindowPos API function with the second parameter HWND_TOPMOST .
Use GetForegroundWindow to get the active window, and the function GetTopWindow (specifying the parent window as 0 (desktop)), or the function GetWindow with the GW_HWNDFIRST parameter to get the top window.
NULL in Delphi will generate an error, because this is a macro. It is necessary to write 0 . - Pavel MayorovSource: https://ru.stackoverflow.com/questions/76895/
All Articles