can i use MatchDocType() in Mainframe class
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
Yes. Mark
Mark Salsbery Microsoft MVP - Visual C++ "Remember the five Ds of dogeball: Dodge, Dip, Duck, Dive, and Dodge." "If you can dodge a wrench, you can dodge a ball."
-
After seeing your previous post, I thought maybe this would help...
CDocument *pDoc;
CDocTemplate::Confidence conf = pDocTemplate->MatchDocType(pszePathname, pDoc);
if (CDocTemplate::yesAlreadyOpen == conf)
{
// Document is already open
// pDoc points to the open document
}Mark Salsbery Microsoft MVP - Visual C++ "Remember the five Ds of dogeball: Dodge, Dip, Duck, Dive, and Dodge." "If you can dodge a wrench, you can dodge a ball."