?
Solved

Window handle valid

Posted on 2002-03-05
3
Medium Priority
?
655 Views
Last Modified: 2008-03-10
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
Comment
Question by:bnz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 44

Expert Comment

by:CrazyOne
ID: 6841841
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
 

Accepted Solution

by:
ms99 earned 400 total points
ID: 6841848
Try isWindow:

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

0
 
LVL 20

Expert Comment

by:Madshi
ID: 6846754
IsWindow is correct.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question