|
// *********************************************************
// リストビューに行挿入
// 戻り値 : 挿入された行。エラーの場合は -1
// *********************************************************
int LboxListview::InsertRow( int nRow )
{
#if CODING == 1
LVITEMA row;
#else
LV_ITEM row;
#endif
ZeroMemory( &row, sizeof( LV_ITEM ) );
row.mask = LVIF_TEXT;
row.pszText = "";
row.iItem = nRow;
LboxListview::nCurrentRow = nRow;
return ListView_InsertItem(
LboxListview::hWnd,
&row
);
}
| |