예제 #1
0
void CDocument::OnChangedViewList()
/*********************************/
{
    if( m_bAutoDelete && GetFirstViewPosition() == NULL ) {
        OnCloseDocument();
    } else {
        UpdateFrameCounts();
    }
}
예제 #2
0
void CDocument::OnChangedViewList()
{
	// if no more views on the document, delete ourself
	// not called if directly closing the document or terminating the app
	if (m_viewList.IsEmpty() && m_bAutoDelete)
	{
		OnCloseDocument();
		return;
	}

	// update the frame counts as needed
	UpdateFrameCounts();
}
예제 #3
0
void CDocument::SetTitle(LPCTSTR lpszTitle)
{
	m_strTitle = lpszTitle;
	UpdateFrameCounts();        // will cause name change in views
}
예제 #4
0
//---------------------------------------------------------------
// Purpose: 
//---------------------------------------------------------------
void CeditorDoc::SetModified( bool mod /*= true*/ )
{
	SetModifiedFlag( mod ? TRUE : FALSE );
	UpdateFrameCounts();
}
예제 #5
0
void CDocument::SetTitle( LPCTSTR lpszTitle )
/*******************************************/
{
    m_strTitle = lpszTitle;
    UpdateFrameCounts();
}