在菜单中添加选择文档的菜单项,后自己在App中写对应的菜单消息函数
void CApp::OnNewOne()
{
// TODO: Add your command handler code here
this->m_pDocTemplate[0]->OpenDocumentFile(NULL);
}void CApp::OnNewTwo()
{
// TODO: Add your command handler code here
this->m_pDocTemplate[1]->OpenDocumentFile(NULL);
}
void CApp::OnNewOne()
{
// TODO: Add your command handler code here
this->m_pDocTemplate[0]->OpenDocumentFile(NULL);
}void CApp::OnNewTwo()
{
// TODO: Add your command handler code here
this->m_pDocTemplate[1]->OpenDocumentFile(NULL);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货