Hello! I'm kind of new using MFC. I have a Doc/View App (SDI) and I want to (thru a menu) create a new view of the document on a separate window (not like an MDI). How can I do that? Hope you can help me!
Hey! Reading a little bit about it on the internet, I came across this code. CMainFrame* pFrame = new CMainFrame; CCreateContext contexto; contexto.m_pCurrentDoc = this; contexto.m_pCurrentFrame = pFrame; contexto.m_pLastView = NULL; contexto.m_pNewDocTemplate = NULL; contexto.m_pNewViewClass =RUNTIME_CLASS(CFuncionesView); pFrame->LoadFrame(IDR_MAINFRAME, WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL, &contexto); //AfxGetMainWnd()->GetActiveWindow(), pFrame->ShowWindow(SW_NORMAL);