|
// *********************************************************
// リストビューに列追加
// 戻り値 : 無し
// *********************************************************
void LboxListview::AddColumn(
int nFmt, int nWidth, LboxString *LString
)
{
LboxListview::AddColumn(
nFmt,
nWidth,
LString->szLboxString
);
}
void LboxListview::AddColumn(
int nFmt, int nWidth, LPTSTR szTitle
)
{
int nCol;
LV_COLUMN col;
ZeroMemory( &col, sizeof( LV_COLUMN ) );
col.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT;
col.fmt = nFmt;
col.cx = nWidth;
col.pszText = szTitle;
nCol = LboxListview::ColumnCount( );
ListView_InsertColumn(hWnd, nCol, &col);
}
| |