windows programming
dialog에 view 넣기
tomato13
2008. 2. 12. 18:54
http://www.devpia.com/MAEUL/Contents/Detail.aspx?oardID=51&MAEULNo=20&no=6891&ref=6891
CCreateContext pContext;
CWnd* pFrameWnd = this;
pContext.m_pCurrentDoc = new CDocument;
pContext.m_pNewViewClass = RUNTIME_CLASS(CNormalView);
CNormalView *pView = (CNormalView*)((CFrameWnd*)pFrameWnd)->CreateView(&pContext);
ASSERT(pView);
pView->ShowWindow(SW_SHOW);
CRect rect;
GetWindowRect(rect);
rect.top = 10;
rect.left = 10;
rect.right = 200;
rect.bottom = 200;
pView->MoveWindow(rect);