Calling a modeless dialog box from a modal dialog box

Calling a modeless dialog box from a modal dialog box

Post by C.. » Sat, 12 Nov 1994 02:11:51



Hi,

Can a modal dialog box be the parent of a modeless dialog box?

I have a dialog box with 7 radio buttons.  Depending on which
button is selected, a different modeless dialog box is displayed.
The user will select a control on the modeless dialog box and then
both the modal and modeless dialog boxes should go away.

I am using VC++ and MFC.

Any help would be appreciated.

Cathy

 
 
 

Calling a modeless dialog box from a modal dialog box

Post by William Ro » Fri, 11 Nov 1994 22:10:14




>Subject: Calling a modeless dialog box from a modal dialog box
>Date: 10 Nov 1994 11:11:51 -0600
>Hi,
>Can a modal dialog box be the parent of a modeless dialog box?
>I have a dialog box with 7 radio buttons.  Depending on which
>button is selected, a different modeless dialog box is displayed.
>The user will select a control on the modeless dialog box and then
>both the modal and modeless dialog boxes should go away.
>I am using VC++ and MFC.

It seems to me that by the definition of Modal, you could find a way to do
this, but your modeless' wouldn't be able to do anything, since the Modal
would be in control until closed, and all others would be disabled. I think
your other dialogs would need to be modal, and the calling one modeless, to
allow the calling one to give over control to one of the others, which could
then close the calling one as part of its own closing.

Of course, there are many others here who know more tricks than I, and might
know how to bypass the Modal behaviour, but this is my understanding of it all.
Bill.

 
 
 

1. Modeless dialog out of a Modal dialog box: possible?

        Hi,

        I was just trying to figure out how to go about
        to have a *modeless* dialog box, appear from
        a *modal* dialog box....is it possible?

        My WinMain only creates a dialog using the DialogBox
        function. So there is NO message loop needed and therefor
        I can't use the IsDialogMessage function to control
        my modeless dialog....hmmmmm...

        Any ideas?

        Thanx.
        Lucas

2. Floppy disk(s) fail (40) error

3. Calling a 2nd Dialog box from within another Dialog Box

4. Mercury Mail server Issues (Retries & Returning)

5. Problem: Modal dialog box with modeless child

6. BC++ : palette changes are not permanent.

7. newbie problem with modal and modeless dialog box .

8. DICOM Storage Commitment Push Model (SCU and SCP)

9. Should my dialog box be modal or modeless?

10. Dialog box from a Dialog Box

11. HELP! Dialog Boxes within Dialog Boxes!

12. Dialog Box from Dialog Box

13. Dialog boxes from dialog boxes?