Modal dialog over a modal dialog ( How to...?) 
Author Message
 Modal dialog over a modal dialog ( How to...?)

Hi to ALL!
I want to display a 2nd modal dialog over my modal dialog. I displayed the
1st dialog with the DoModal() member function. I want to display a 2nd modal
dialog when my user press a command button on this 1st dialog. But if I use
the DoModal() with this 2nd dialog it will be _modeless_.

As I saw the MFC source code, there is some trick implementing modality, MFC
does not use the standard Windows way to do that...

any idea?
thx for help. ( I use Visual C++ 5.0 )
Horo



Thu, 22 Jun 2000 03:00:00 GMT  
 Modal dialog over a modal dialog ( How to...?)

Hi to ALL!
I want to display a 2nd modal dialog over my modal dialog. I displayed the
1st dialog with the DoModal() member function. I want to display a 2nd modal
dialog when my user press a command button on this 1st dialog. But if I use
the DoModal() with this 2nd dialog it will be _modeless_.
As I saw the MFC source code, there is some trick implementing modality, MFC
does not use the standard Windows way to do that...

any idea?
thx for help. ( I use Visual C++ 5.0 )
Horo



Fri, 23 Jun 2000 03:00:00 GMT  
 Modal dialog over a modal dialog ( How to...?)

Quote:
>I want to display a 2nd modal dialog over my modal dialog. I displayed the
>1st dialog with the DoModal() member function. I want to display a 2nd modal
>dialog when my user press a command button on this 1st dialog. But if I use
>the DoModal() with this 2nd dialog it will be _modeless_.

It shouldn't be - I've just tried what I think you're describing, and
the second dialog appears over the initial one and is modal (click on
the first dialog & it beeps).

What specifically are you doing?

Is something in your application confusing MFC? With the later
versions of MFC all dialogs are really modeless, but fake modality by
disabling the parent window.

Dave
----
Address is altered to discourage junk mail.
Remove ".---" for the real address.



Sat, 24 Jun 2000 03:00:00 GMT  
 Modal dialog over a modal dialog ( How to...?)

Hi GAbor,
From what I perceive, U R trying to display a Modal dialog over a Modal Dialog.
If yes, then the Button Command Handler in the FirstDialog should just call
SecondDialog.DoModal(). It has to work & both the dialogs R modal....try
clicking on the FirstDialog after the SecondDialog is displayed & U should
either get a beep (if Beep device is installed) or nothing should happen to it.

Apul Nahata
   Home page at : http://members.tripod.com/~apul

Quote:

> Hi to ALL!
> I want to display a 2nd modal dialog over my modal dialog. I displayed the
> 1st dialog with the DoModal() member function. I want to display a 2nd modal
> dialog when my user press a command button on this 1st dialog. But if I use
> the DoModal() with this 2nd dialog it will be _modeless_.

> As I saw the MFC source code, there is some trick implementing modality, MFC
> does not use the standard Windows way to do that...

> any idea?
> thx for help. ( I use Visual C++ 5.0 )
> Horo



Sat, 24 Jun 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Showing a modal dialog in a modal dialog application

2. modal dialog spawning a modal dialog

3. modal dialogs on top of modal dialogs...

4. creating Modal vs. Non-Modal dialogs

5. modal dialog not modal?

6. Modal dialog not acting modal

7. modal dialog to modal less

8. Executing modal tabbed dialog from a dialog-based application

9. Modeless dialog called from Modal dialog woes.

10. Modeless Dialog box in a Modal Dialog Application...

11. Modeless dialog box together with modal dialog box

12. Modeless Dialog from Modal Dialog question ?

 

 
Powered by phpBB® Forum Software