MFC/CFileDialog missing View Menu under WIndows 10, not Windows 7

  • Thread starter Thread starter VoiceOfExperience
  • Start date Start date
V

VoiceOfExperience

Guest
In C++ pgm, CFileDialog is used to select a single file. MFC is being linked statically, in a release build. Under 64-bit Windows 7, it works as expected, but under 64-bit Windows 10, the View Menu dropdown is blank, as shown below.

Windows 7: correct

1084184.png

Windows 10: wrong

1084185.png



The C++ code to create the File Open dialog is


int xBrw(char title[], CString dir, char defaultExt[], char defaultFiles[], char fileTypes[])
{

DWORD flags = OFN_CREATEPROMPT | OFN_HIDEREADONLY;
CFileDialog dlg(TRUE, defaultExt, defaultFiles, flags, fileTypes);
dlg.m_ofn.lpstrTitle = title;
dlg.m_ofn.lpstrInitialDir = dir;
int result = (int)dlg.DoModal();
etc.
The project is being built using Visual Studio 2015 Pro, running under 64-bit Windows 7. The project settings include "Use MFC in a Static Library" and character set "Not Set".

Continue reading...
 
Back
Top