C
Cole Shelton
Hi all,
I am using SendMessage to manipulate the window of another process. The
problem is that when I use SendMessage to click a certain button a
MessageBox is displayed and my program will not continue until the user
clicks the OK button, which is not what I want.
Therefore, I switched to using PostMessage to click the button, which allows
my program to continue, except I need to know when it has pressed the button
so I can close the MessageBox. If my program runs directly through, it does
not find the MessageBox because the button has not been pushed yet. So if I
use PostMessage to click the button, how do I determine when this message
has completed so I can close the MessageBox and resume my other tasks?
Thanks for any help!
Cole
I am using SendMessage to manipulate the window of another process. The
problem is that when I use SendMessage to click a certain button a
MessageBox is displayed and my program will not continue until the user
clicks the OK button, which is not what I want.
Therefore, I switched to using PostMessage to click the button, which allows
my program to continue, except I need to know when it has pressed the button
so I can close the MessageBox. If my program runs directly through, it does
not find the MessageBox because the button has not been pushed yet. So if I
use PostMessage to click the button, how do I determine when this message
has completed so I can close the MessageBox and resume my other tasks?
Thanks for any help!
Cole