// Get pointer to CDocument object so that it can be used in the creation
// process of the new view
CView *pView = (CView *)GetPane(row, col);
CDocument *pDoc = pView->GetDocument();
int ctrl_id = pView->GetDlgCtrlID();
int width, height, min_width, min_height;