1. Start a dialog based MFC Application
2. Add a class inherit from CView ( Here I add a class named CDictVIEw inherit from CHtmlVIEw)
3. Add following code in OnInitDialogDone!

CCreateContext ctx1;

ctx1.m_pCurrentDoc = NULL;

ctx1.m_pCurrentFrame = NULL;

ctx1.m_pLastVIEw = NULL;

ctx1.m_pNewDocTemplate = NULL;

ctx1.m_pNewViewClass = RUNTIME_CLASS(CDictVIEw);


CDictView* dictVIEw = NULL;

dictView = (CDictView*)((CFrameWnd *)this)->CreateVIEw(&ctx1);

CRect rectClIEnt;

//GetDlgItem(IDC_STATIC1)->GetClientRect(rectClIEnt);

//GetDlgItem(IDC_STATIC1)->MapWindowPoints(this, rectClIEnt);

//rectClIEnt.DeflateRect(0,0);

GetClientRect(&rectClIEnt);


dictView->MoveWindow(rectClIEnt);

dictVIEw->UpdateWindow();
Pass the compilation on VS 2008.