|
-
June 18th, 2004, 06:42 AM
#1
Handling of window opening
1) How to handle opening of a window, which belongs to another process (separate application)? The window has unique title, but not unique class. I need more intelligent way, than just calling FindWindow() from infinite loop
2) How can I monitor and handle closing/terminating of that window, after I found it?
-
June 18th, 2004, 09:48 AM
#2
If you need your application to be notified when another window has been created or destroyed, you'll need to use a hook, since you've already ruled out polling using FindWindow.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-
June 18th, 2004, 12:00 PM
#3
Yes, already digging in this direction.
http://www.codeproject.com/system/hooksys.asp
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|