void CDocument::OnChangedViewList() /*********************************/ { if( m_bAutoDelete && GetFirstViewPosition() == NULL ) { OnCloseDocument(); } else { UpdateFrameCounts(); } }
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(); }
void CDocument::SetTitle(LPCTSTR lpszTitle) { m_strTitle = lpszTitle; UpdateFrameCounts(); // will cause name change in views }
//--------------------------------------------------------------- // Purpose: //--------------------------------------------------------------- void CeditorDoc::SetModified( bool mod /*= true*/ ) { SetModifiedFlag( mod ? TRUE : FALSE ); UpdateFrameCounts(); }
void CDocument::SetTitle( LPCTSTR lpszTitle ) /*******************************************/ { m_strTitle = lpszTitle; UpdateFrameCounts(); }