|
-
Aug 21st, 2003, 12:32 PM
#1
Thread Starter
Hyperactive Member
Waiting for a window
I have an app that's running a loop to wait for the task manager to appear (class "#32770", title "Windows Task Manager"). This works just fine, but I would like for my program to use as little resources as possible - I was wondering if I could use WaitForSingleObject to get this done, but the problem is my application isn't starting the task manager - windows is - so I don't have its process id. I realize I could go out and get it, but I would still have to run some kind of loop to wait for the window to appear to get it's id.
Simply, I want a nice loopless (or minimal resources used) method of knowing when a hwnd is loaded, where my app isn't loading the hwnd.
-
Aug 21st, 2003, 04:26 PM
#2
Hyperactive Member
i dont think its possible :/
-
Aug 22nd, 2003, 04:23 AM
#3
Set a window creation hook.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|