Displaying window while a dialog box function operates 
Author Message
 Displaying window while a dialog box function operates

I have an MFC app that displays a dialog box with several buttons to
perform functions that can take several minutes to complete.  When a
button is selected I want to pop up a simple window to tell the user
"This may take a minute", and continue with the function, then terminate
the window, never giving the user the ability to kill the window or go
back to the underlaying dialog box.  

Any help?

Thanks

Brendan



Tue, 21 Mar 2000 03:00:00 GMT  
 Displaying window while a dialog box function operates

Quote:

> I have an MFC app that displays a dialog box with several buttons to
> perform functions that can take several minutes to complete.  When a
> button is selected I want to pop up a simple window to tell the user
> "This may take a minute", and continue with the function, then
> terminate
> the window, never giving the user the ability to kill the window or go
> back to the underlaying dialog box.

You need to derive a dialog from CDialog, let's call it CWarningDlg,
then when a button is selected,  you need to create a modeless dialog
box, something like this:

     CWarningDlg* pWarningDlg  =  new CWarningDlg( this );
     pWarningDlg->Create(this);

When the function finishes, you need  to destroy the modeless dialog
box:
     pWarningDlg->DestroyWindow();

Hope this help, I myself am having a hard time with these modeless
dialog boxes, but I think I can help you with this problem. Let me know
if you need more help.

Juana

Quote:

> Brendan



Tue, 21 Mar 2000 03:00:00 GMT  
 Displaying window while a dialog box function operates

Look for help on modeless dialogs (CDialog::Create).


Quote:
> I have an MFC app that displays a dialog box with several buttons to
> perform functions that can take several minutes to complete.  When a
> button is selected I want to pop up a simple window to tell the user
> "This may take a minute", and continue with the function, then terminate
> the window, never giving the user the ability to kill the window or go
> back to the underlaying dialog box.  

> Any help?

> Thanks

> Brendan



Sat, 25 Mar 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. PBM: Message box not displayed after main dialog box is closed in MFC dialog-based app

2. Code to display a dialog box from within a function

3. Help wanted for windows dialog boxes display

4. displaying dialog box with my main window..

5. Displaying Dialog Box On the Main Window

6. Generic Thunking and Windows NT: Cannot display dialog boxes in the DLL

7. displaying dialog box with my main window..

8. Display a dialog window before the main Window

9. Dialog box as a main window in windows 95, using Win32 SDK only (MSVC 5.00)

10. HOWTO: display a dialog box from a NT service using RPC

11. Displaying data from database table in dialog box

12. VC++: Problem with displaying Dialog Box

 

 
Powered by phpBB® Forum Software