title: How to use IFileDialog with FOS_PICKFOLDER while still displaying file names in the dialog
body: <p>I'm trying to use IFileDialog to select a folder and the following code does this just fine. The problem is I'd like to see certain file types as well as folders while browsing (such as *.txt). Is there a simple way to do this?</p>
  
  <pre><code>//g_path is a global which will contain the selected folders path
  void PickContainer()
  {
      IFileDialog *pfd;
      if (SUCCEEDED(CoCreateInstance(CLSID_FileOpenDialog, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&amp;pfd))))
      {
          DWORD dwOptions;
          if (SUCCEEDED(pfd-&gt;GetOptions(&amp;dwOptions)))
          {
              pfd-&gt;SetOptions(dwOptions | FOS_PICKFOLDERS);
          }
          if (SUCCEEDED(pfd-&gt;Show(NULL)))
          {
              IShellItem *psi;
              if (SUCCEEDED(pfd-&gt;GetResult(&amp;psi)))
              {
                  if(!SUCCEEDED(psi-&gt;GetDisplayName(SIGDN_DESKTOPABSOLUTEPARSING, &amp;g_path)))
                  {
                      MessageBox(NULL, "GetIDListName() failed", NULL, NULL);
                  }
                  psi-&gt;Release();
              }
          }
          pfd-&gt;Release();
      }
  }
  </code></pre>