How to just display file type friendly name in open file dialog

  • Thread starter Thread starter Farmer777
  • Start date Start date
F

Farmer777

Guest
Hello,

I have set a filter of my open file dialog through the SetFileTypes function;

const COMDLG_FILTERSPEC c_OpenTypes[] = {
{L"7zip Archive", L"*.7zip"}
};

hr = pFileOpen->SetFileTypes(ARRAYSIZE(c_OpenTypes), c_OpenTypes);

This shows;

7zip Archive (*.7zip)

in the filter drop-down list of the open file dialog. How can I just display the file type friendly name "7zip Archive" instead?

Continue reading...
 
Back
Top