Process A starts process B. How does process A ensure that process B's window runs modally?
Printable View
Process A starts process B. How does process A ensure that process B's window runs modally?
It's not under parent process's control, the child process (process B) should use functions like DialogBox or MFC CDialog:: DoModal to create it.
1) You mean, How would Process A know that Process B has shown a Window that is Modal? You can use the messaging.Quote:
Originally Posted by Sathyaish
If this is the case, then you can use some Flag in Process B and may check the Flag value from Process B by SendMessage()es, or the processes may do the otherwise.
2) Also, you can get the Process B window handle and do the DoModal yourself from Process A.
This is what I think you asked?