G
giorgiosf
Guest
Environment: C++ VisualStudio 2005 under XP
Type of code: MFC with /crl
The Framework function File | Open works normally and opens the standard FileDialog with the new EXPLORE format.
I have another menu option: File | Load Module that is used to select and load an additional data file. I used CFileDialog for this purpose, but the first time I select this menu option the dialog does not show; the second and following times it works normally.
Article ID 131225 (Nov 15, 2006) describes a similar situation (but in reference to Win95) and the recommended solution consists in disabling the flag OFN_EXPLORE before the call dlg.DoModal().
By doing that in my code, the dialog does indeed show at the first trial, but it is an ugly version of the file dialog. I would be glad to use the EXPLORE format. Can anybody help me on this?
Incidentally: the documentation reads that the OPENFILENAME structure is in the member m_ofn of CFileDialog. While this structure is still accessible, actually now it is pointed by m_pOFN. Either one of these members have the same effect, however.
Thanks to all.
Continue reading...
Type of code: MFC with /crl
The Framework function File | Open works normally and opens the standard FileDialog with the new EXPLORE format.
I have another menu option: File | Load Module that is used to select and load an additional data file. I used CFileDialog for this purpose, but the first time I select this menu option the dialog does not show; the second and following times it works normally.
Article ID 131225 (Nov 15, 2006) describes a similar situation (but in reference to Win95) and the recommended solution consists in disabling the flag OFN_EXPLORE before the call dlg.DoModal().
By doing that in my code, the dialog does indeed show at the first trial, but it is an ugly version of the file dialog. I would be glad to use the EXPLORE format. Can anybody help me on this?
Incidentally: the documentation reads that the OPENFILENAME structure is in the member m_ofn of CFileDialog. While this structure is still accessible, actually now it is pointed by m_pOFN. Either one of these members have the same effect, however.
Thanks to all.
Continue reading...