Originally posted by -KEN-
How can I make a modeless dialog box in MFC that isn't so tied into the parent? I more or less want the dialog to be completely independant of its parent (although it'd send messages back still). Right now I'm using
note = new Note();
note->Create(IDD_NOTE_DIALOG);
note->ShowWindow(SW_SHOW);
but when you minimize the original dialog, the new one goes too.
Any thoughts?
Add a handler on the child dialog for WM_SHOWWINDOW....and do this
Code:
void Note::OnShowWindow(BOOL bShow, UINT nStatus)
{
if(nStatus != SW_PARENTCLOSING)
CDialog::OnShowWindow(bShow, nStatus);
}