title: Updating display of directory/folder path in MFC File-Open dialog
body: <p>I have an Visual Studio 2022 MFC application in which the user can specify the default folder locations of certain types of files used/handled by the application (e.g. txt, jpeg, xls...). The user can specify the default directories via a dedicated dialog with 'Browse Folder' edit boxes for each of the various file types.  The details of the selected folders are stored in a Windows Registry entry.</p>
  <p>When the user launches the familiar 'File Open' dialog the file type filter by default is set to display .txt files. AND ALSO the directory/folder path displays the default path specified by the user, for .txt files.</p>
  <p>BUT IF it is possible I would like the displayed directory path/default folder to automatically update/change IF the user changes the file type filter (e.g. switches from .txt files to .bmp).</p>
  <p>Is it possible to do this with the MFC 'File Ope'n dialog?
  Thanks in advance to anyoen who can help.</p>