我在一个FormView中使用如下代码嵌入了一个视,现在不知道如何实现打印及打印预览、打印设置。
CCreateContext pContext;  
CWnd *pFrameWnd=this;  
//pContext.m_pCurrentDoc=(CDocument*)RUNTIME_CLASS(CCodeEditDoc)->CreateObject();// 若无文档 ,可以自己建一个文档类  
pContext.m_pNewViewClass=RUNTIME_CLASS(CCodeEditView);  
CCodeEditView *pView=(CCodeEditView*)((CCodePrintFrame*)pFrameWnd)->CreateView(&pContext);  
ASSERT(pView);
pCodeView=pView;
pView->ShowWindow(SW_NORMAL);