Selecting font files with CFileDialog
Posted on 1997-12-03
I'm using VC++ 5.0 with Win95. I create a CFileDialog to select files. The CFileDialog does special
processing when the files displayed in the dialog are font files. In this case, the file name is not displayed, rather, the font name is displayed instead. When I select a font and click on the Open button, a font dialog pops up displaying a sample of the font.
I need to be able to select font files like any other file, without all this special extra processing
that the CFileDialog seems to be doing.
To see an example of what I am talking about, create a CFileDialog and select the
c:\windows\fonts directory on your system. Only the font names will be displayed, not the
font filenames. And selecting a font pops up a font dialog...