VC++ 6.0

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


TIA
Jean Palmer
Northrop Grumman
> * [EMAIL PROTECTED]
> * (410-993-2627)
> 
> 

_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to