Click to See Complete Forum and Search --> : show a message box without waiting for any user-action


Andreas Richter
March 30th, 1999, 12:12 AM
I want to display a message box during the program does a time-intensive action. If I use the MessageBox() - function or if i use a resource constructed box with the DModal() - function, the program stops and waits for a user action.


What kind of function can I use to get this:


{

program shows a message-box <-- ?????


program does some action, message-box is displayed


program clears message box <-- ?????

}

Mike Wild
March 30th, 1999, 12:41 AM
There is a timermessagebox on this site othervise you have to show a normal window.


Mike

Daren Chandisingh
March 30th, 1999, 03:24 AM
Don't call DoModal(), use Create() and ShowWindow(). This

will create a modeless dialog for you.

CDialog *pDlg = new CDialog();

if (pDlg)

{

if (0 != pDlg-&gt;Create(IDD_MYDIALOG, this))

{

pDlg-&gt;ShowWindow(SW_SHOW);

}

}



Remember to delete the object (unless you decide to create it

on the stack).

Andreas Richter
March 30th, 1999, 11:42 AM
Many thanks for your help, it works fine!