Creating child windows ( controls ) on your view window
Creating controls such as edit box, button on your view window is not a big deal. It's only few lines of code.
Override your view class's OnInitialUpdate handler and write this code.
void CToolbar1View::OnInitialUpdate()
{
CView::OnInitialUpdate();
CEdit* pEdit = new CEdit;
pEdit->Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,
CRect(10, 10, 100, 100), this, 111);
CButton* pButton = new CButton;
pButton->Create( " Click Me ",WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER, CRect(110, 110, 200, 200), this, 112);
EnableToolTips(TRUE); // enable tool tips for view
}
Run and Execute your application. You are all set.