CDocTemplate::MatchDocType

Call this member function to determine the type of document template to use for opening a file. If your application supports multiple file types, for example, you can use this function to determine which of the available document templates is appropriate for a given file by calling MatchDocType for each template in turn, and choosing a template according to the confidence value returned.

Syntax

virtual Confidence MatchDocType( LPCTSTR lpszPathName, CDocument*& rpDocMatch );

virtual Confidence MatchDocType( LPCTSTR lpszPathName, DWORD dwFileType, CDocument*& rpDocMatch );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CDocTemplate Overview, CDocTemplate Member Functions, Application Architecture Classes, CDocTemplate::GetDocString