show a message box without waiting for any user-action
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 <-- ?????
}
Re: show a message box without waiting for any user-action
There is a timermessagebox on this site othervise you have to show a normal window.
Mike
Re: show a message box without waiting for any user-action
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->Create(IDD_MYDIALOG, this))
{
pDlg->ShowWindow(SW_SHOW);
}
}
Remember to delete the object (unless you decide to create it
on the stack).
Re: show a message box without waiting for any user-action
Many thanks for your help, it works fine!