最近在看jjh的《深入浅出mfc》,有个地方不明白,请教??
这是一个sdi的InitInstance()中的一部分: 
    CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CMfcwDoc),
RUNTIME_CLASS(CMainFrame),       // main SDI frame window
RUNTIME_CLASS(CMfcwView));
AddDocTemplate(pDocTemplate); // Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo); // Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE; // The one and only window has been initialized, so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
//////////////////////////////////////////////////////
我不明白的地方是:这个里面并没有声明一个从 CFrameWnd派生出来的对象(在mdi中,书上的说明显示:这个对象调用loadframe()函数生成主窗口(??sorry,初学不知道这个说法多吗?),可是在sdi中没有这个对象呀  这是怎么回事??