CView 컨트롤 삽입
잡다한 정보들(기타정보)
2009. 11. 23. 14:53
CWnd* pFrameWnd = this;
CCreateContext pContext;
// CFakeDoc는 CDocument를 상속
pContext.m_pCurrentDoc = new CFakeDoc();
pContext.m_pNewViewClass = RUNTIME_CLASS(CTestView);
m_pTestView= (CTestView*)((CFrameWnd*)pFrameWnd)->CreateView(&pContext);
ASSERT(m_pTestView);
m_pTestView->ShowWindow(SW_SHOW);
CCreateContext pContext;
// CFakeDoc는 CDocument를 상속
pContext.m_pCurrentDoc = new CFakeDoc();
pContext.m_pNewViewClass = RUNTIME_CLASS(CTestView);
m_pTestView= (CTestView*)((CFrameWnd*)pFrameWnd)->CreateView(&pContext);
ASSERT(m_pTestView);
m_pTestView->ShowWindow(SW_SHOW);