Hi all,

My main dialog create and display a second dialog.
The second dialog can create another dialog when a user click on a button:

--------------- ------------ ------------
| main dlg | -> | 2nd dlg | -> | 3rd dlg |
--------------- ------------- ------------

Code:
void OnClick()
{
    // Create the 3rd dialog
   m_pMy3rdDlg->Create(CMy3rdDlg::IDD, GetDesktopWindow());
   
   if ( !pMy3rdDlg->InitializationSucceeded() )
       AfxMessageBox( _T("Failed") ); 
}
My problem is that if my second dialog needs to display a message box,
It is shown on the main dialog instead of the 2nd dialog.

How can I sort it out?

Many thanks!