newntui/discovermdi/src/simplifytree.cpp
//---------------------------------------------------------------------------------------------------
// This private function transforms the long file name into short form.
//---------------------------------------------------------------------------------------------------
This private function transforms the long file name into short form.
This private function transforms the long file name into short form .
CString CSimplifyTree::GetShortName(const CString& longName) {
register i;
    for(i=longName.GetLength()-1;i>=0;i--) {
		if(longName[i]=='\\' || longName[i]=='/' || longName[i]==':') {
			   i++;
			   break;
		}
	}
	return longName.Right(longName.GetLength()-i);
}
CString CSimplifyTree :: GetShortName ( const CString & longName ) { register i ; for ( i = longName . GetLength ( ) - 1 ; i >= 0 ; i -- ) { if ( longName [ i ] == ' \\ ' || longName [ i ] == ' ' || longName [ i ] == ' ' ) { i ++ ; break ; } } return longName . Right ( longName . GetLength ( ) - i ) ; }
This private function transforms the long file name into short form.
This private function transforms the long file name into short form .