newntui/discovermdi/src/dockablebrowser.cpp
//----------------------------------------------------------------------------------------
// This function will remove all elements from the history list and will unset all server
// variables
//----------------------------------------------------------------------------------------
This function will remove all elements from the history list and will unset all server
variables
This function will remove all elements from the history list and will unset all server variables
void CDockableBrowser::ClearHistory(void) {
POSITION pos;
    pos=m_History.GetHeadPosition();
	while(pos) {
		CHistoryEntry entry;
		entry=m_History.GetAt(pos);
		CString command;
		command.Format("unset %s",entry.m_ServerVariable);
		ExecuteCommand(command);
		m_History.GetNext(pos);
	}
	m_History.RemoveAll();
	m_CurrentHistoryEntry=NULL;
	m_InHistory=0;
	m_VarIndex=0;
}
void CDockableBrowser :: ClearHistory ( void ) { POSITION pos ; pos = m_History . GetHeadPosition ( ) ; while ( pos ) { CHistoryEntry entry ; entry = m_History . GetAt ( pos ) ; CString command ; command . Format ( " " , entry . m_ServerVariable ) ; ExecuteCommand ( command ) ; m_History . GetNext ( pos ) ; } m_History . RemoveAll ( ) ; m_CurrentHistoryEntry = NULL ; m_InHistory = 0 ; m_VarIndex = 0 ; }
This function will remove all elements from the history list and will unset all server
variables
This function will remove all elements from the history list and will unset all server variables