Windows OpenFile
Dialog do not display initial file name correctly:
The file name is scrolled to the left as it would be too long. If I choose the same file by a double-click, then its name is shown correctly.
The MFC's CFileDialog
is used to create the OpenFile
Dialog:
CFileDialog fileDialog(TRUE, nullptr,
_T("GutenTagScript.vbs"), OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST,
_T("VBS Files|*.vbs||"), this, 0);
The problem occurs only in OpenFile
Dialog not in SaveFile
Dialog.