newntui/discovermdi/src/dockablebrowser.cpp
//----------------------------------------------------------------------------------------
// Enables or disables "Next" button in the history panel
//----------------------------------------------------------------------------------------
Enables or disables "Next" button in the history panel
Enables or disables " Next " button in the history panel
void CDockableBrowser::OnUpdateNext(CCmdUI* pCmdUI)  {
POSITION pos = m_CurrentHistoryEntry;
    if(pos)  {
		m_History.GetNext(pos);
		if(pos) {
		    pCmdUI->Enable(TRUE);	
		} else pCmdUI->Enable(FALSE);
	} else pCmdUI->Enable(FALSE);
}
void CDockableBrowser :: OnUpdateNext ( CCmdUI * pCmdUI ) { POSITION pos = m_CurrentHistoryEntry ; if ( pos ) { m_History . GetNext ( pos ) ; if ( pos ) { pCmdUI -> Enable ( TRUE ) ; } else pCmdUI -> Enable ( FALSE ) ; } else pCmdUI -> Enable ( FALSE ) ; }
Enables or disables "Next" button in the history panel
Enables or disables " Next " button in the history panel