15,979
社区成员
发帖
与我相关
我的任务
分享
BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext)
{
CNewDocumentDlg cndNewDocument;
if(cndNewDocument.DoModal()!=IDOK||
cndNewDocument.tdTypeDocument==TypeRawDocument)
{
//pContext->
return FALSE;
}
((CScoreProfessionalDoc*)(pContext->m_pCurrentDoc))->tdTypeDocument
= cndNewDocument.tdTypeDocument;
switch(cndNewDocument.tdTypeDocument)
{
case TypeQueryByClassInformation://这些TypeXX是我用来区分怎么样显示的
//这些地方进行分割Client的操作
break;
case TypeQueryByExamInformation:
break;
case TypePythonCode:
break;
default:
ASSERT(FALSE);
}
}