• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 662
  • Last Modified:

Window handle valid

I have obtained a handle to another window, if I after sometime wants to know if the window is still alive, how do I achieve that ?

Is there some IsHandleValid API ?
0
bnz
Asked:
bnz
1 Solution
 
CrazyOneCommented:
Just make a recall of how you retrieved the handle in the first place. If the Window was closed and then reopened it will have a new handle anyway. I my opinion a Window handle should be used as soon as you get the handle and not using it at a later time because things can happen quickly that the handle you have may of expired, at least for that window.
0
 
ms99Commented:
Try isWindow:

if isWindow(Handle) then begin
  // the window still exists
end;

0
 
MadshiCommented:
IsWindow is correct.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now