void CGraphicWindowChildFrame::OnClose() 
{
	CMainFrame* pMF = VAWindow();
	if( pMF && (pMF->CountGraphicViews() > 1) ) {
		MDIDestroy();
	}
	else {
		if( theDocument && theDocument->CanClose() ) {
			SECMDIChildWnd::OnClose();
		}
	} 
	return;
}