You have only to declare the template like that:

CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_TEXTILTYPE,
RUNTIME_CLASS(CTextilDoc),
RUNTIME_CLASS(CMDIChildWnd), // standard MDI child frame
RUNTIME_CLASS(CTextilView));
AddDocTemplate(pDocTemplate);