Support lpstrCustomFilter and return nFilterIndex in file dialog.