
Modeless Dialog from Modal Dialog question ?
Scott,
I've tried a couple of things, all variations on the following ...
void TestDlg::OnLog()
{
...
m_pLogDialog = new CLOGDialog(NULL);
m_pLogDialog->Create();
this->BringWindowToTop();
...
Quote:
}
... where TestDlg is the Modal Dialog box that represents the main
application and CLOGDialog is a Modeless dialog box that contains a listbox,
a Clear button and an Exit button.
I'm wondering if I've missed a style setting or something that overrides
things.
thanks,
Duncan
Quote:
> Did you make the modal dialog the parent of the modeless one? If so,
> that's why it always stays in front. Try setting the parent to be the
> parent of the modal dialog instead.