Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
|
Is a window a top-level window?
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Q:
I need a way to figure out if a window is a top level window or not. Is
there any way to do this?
A:
Check the parent handle as shown below:
 | |  | | function IsWindowTopLevel(W : Hnd) : Boolean;
begin
Result := (Windows.GetParent(W) = 0);
end; | |  | |  |
Comments:
|