ocr: Application CWinApp: CWinApp:: ID_FILELOPEN On File Open On File New ID_FILE_NEW command handler called handler called command Get file name One document No Get document from user type from user template? Yes Use file extension to select document template Document template selected at this point (MDI or SDI)