|
// *********************************************************
// リストビューの選択されている行のファイルを削除
// 戻り値 : 0 正常終了, それ以外はエラー
// *********************************************************
int LboxUnlha::Delete( LboxListview *Lview )
{
LboxString LString;
int nRow;
BOOL bFirst;
this->Command.operator = ( "D -p2 " );
LString.operator = (&(this->TargetPath));
LString.Enclose('"');
this->Command.operator += ( &(LString) );
this->Command.operator += ( " " );
nRow = -1;
bFirst = true;
while( Lview->FindNextSelectedRow( &nRow ) ) {
if ( bFirst ) {
bFirst = false;
}
else {
this->Command.operator += ( " " );
}
Lview->GetColumnText( 9, &LString );
LString.Enclose('"');
this->Command.operator += ( &(LString) );
}
return LboxUnlha::Unlha(
&(this->Command)
);
}
| |