This method determines the type of document template to use for opening a file. If your application supports multiple file types, for example, you can use this method to determine which of the available document templates is appropriate for a specified file by calling MatchDocType for each template in turn, and choosing a template according to the confidence value returned.
Header file: | Afxwin.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
virtual Confidence MatchDocType( LPCTSTR lpszPathName,
CDocument*& rpDocMatch );
virtual Confidence MatchDocType( LPCTSTR lpszPathName,
DWORD dwFileType, CDocument*& rpDocMatch );