CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2003
    Posts
    417

    How to run a process modally?

    Process A starts process B. How does process A ensure that process B's window runs modally?

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: How to run a process 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.
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Apr 2001
    Location
    Karachi, Pakistan.
    Posts
    466

    Re: How to run a process modally?

    Quote Originally Posted by Sathyaish
    Process A starts process B. How does process A ensure that process B's window runs modally?
    1) You mean, How would Process A know that Process B has shown a Window that is Modal? You can use the messaging.

    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?
    KMan
    use code-tags
    Rating a post is'nt injurious(0:


    http://izlooite.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured