|
// *********************************************************
// リストビューの列のタイトルを取得
// 戻り値 : 無し
// *********************************************************
void LboxListview::GetColumnTitle( int nCol, LboxString *LString )
{
int nLen;
while( 1 ) {
LboxListview::GetColumnTitle(
nCol,
LString->szLboxString,
LString->nLboxString
);
nLen = lstrlen( LString->szLboxString );
if ( nLen >= (int)(LString->nLboxString) - 2 ) {
if ( LString->nLboxString > LBOX_STRINGMAX ) {
break;
}
LString->Resize( LString->nLboxString + MAX_PATH );
continue;
}
break;
}
}
void LboxListview::GetColumnTitle( int nCol, LPTSTR szBuffer, int nSize )
{
LV_COLUMN col;
ZeroMemory( &col, sizeof( LV_COLUMN ) );
col.mask = LVCF_TEXT;
col.pszText = szBuffer;
col.cchTextMax = nSize;
ListView_GetColumn(
this->hWnd,
nCol,
&col
);
}
| |