Hi

I have a problem with dialog boxes I was hoping someone could help me with:

I have a dialog based project where I am creating another window from the main dialog OnInitDialog function:

BOOL CFCMDlg::OnInitDialog()
{
...........
m_canvas.Create(IDD_CANVAS, this);
m_canvas.ShowWindow(SW_SHOWNORMAL);
...........
}

The problem is that I want the main dialog window (CFCMDlg) to always be on top of the new window (CCanvas). Even if I select the main dialog window (CFCMDlg) it always appears behind the new window (CCanvas).

Is there something I can add / modify which will make the CCanvas dialog box always appear behind the CFCMDlg dialog box regardless of what is currently selected?

Thanks,

Robbie