> I have a CFileDialog that is displayed with a DoModal() call. > Since it is a modal window, the application waits on it to be > dismissed before allowing user input in other windows. > Unfortunately, the dialog window is not coming up as the topmost > window. It is hidden under other windows, so the application seems to > hang... it's waiting for user input in a window that isn't visible. > > I guess I could derive a class from CFileDialog and use its > OnInitDialog() to make sure that the dialog window is visible... but > that seems like overkill. It sure seems that a dialog window should > always show up on top. Am I missing some setting? > The dialog is created and shown as follows: > > CFileDialog dlg(TRUE, ".hdr", NULL, OFN_FILEMUSTEXIST | OFN_READONLY); > // some dlg.m_ofn values set here if (IDOK == > dlg.DoModal()) > // take action here
Hmm, looks like the application window has been set to something like "always on top". Have you tried SetWindowPos( ) to bring the modal window to the top? ------------- Ehsan Akhgari Farda Technology (http://www.farda-tech.com/) List Owner: [EMAIL PROTECTED] [ Email: [EMAIL PROTECTED] ] [ WWW: http://www.beginthread.com/Ehsan ] _______________________________________________ msvc mailing list [EMAIL PROTECTED] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
