|
// *********************************************************
// リストビューのカラムデータを次のエディットコントロールにセット
// 戻り値 : 無し
// *********************************************************
void LboxListview::LoadColumnTextNext( void )
{
int nRowCount,nColCount;
int nRow,nCol;
BOOL bBreak;
int nType,nSize;
LboxListview::HideEdit( );
nRowCount = LboxListview::Count();
nColCount = LboxListview::ColumnCount();
nRow = LboxListview::nEditRow;
nCol = LboxListview::nEditCol + 1;
bBreak = false;
while( 1 ) {
if ( bBreak ) {
break;
}
if ( nRow + 1 > nRowCount ) {
nRow = 0;
continue;
}
while( 1 ) {
if ( nCol + 1 > nColCount ) {
nCol = 0;
break;
}
Buffer->Printf( "%d", nCol );
if ( Buffer->Case( LboxListview::lpSkipColumn ) ) {
nCol++;
continue;
}
nType = 0;
nSize = 0;
LboxToken *Token;
Token = new LboxToken();
LboxString *LString;
LString = new LboxString();
if ( LboxListview::ColumnType != NULL ) {
Token->CreateToken(
LboxListview::ColumnType->szLboxString, "," );
if ( Token->nCount >= nCol ) {
LString->operator = ( Token->Token[nCol] );
nType = LString->Atoi();
}
}
if ( LboxListview::ColumnSize != NULL ) {
Token->CreateToken(
LboxListview::ColumnSize->szLboxString, "," );
if ( Token->nCount >= nCol ) {
LString->operator = ( Token->Token[nCol] );
nSize = LString->Atoi();
}
}
delete LString;
delete Token;
LboxListview::LoadColumnText( nRow, nCol, nType, nSize );
bBreak = true;
break;
}
nRow++;
}
}
| |