|
// *********************************************************
// リストビューに列挿入
// 戻り値 : 無し
// nFmt 用定数
// LVCFMT_CENTER : 中央
// LVCFMT_LEFT : 左寄せ
// LVCFMT_RIGHT : 右寄せ
// *********************************************************
void LboxListview::InsertColumn(
int nCol, int nFmt, int nWidth, LboxString *LString
)
{
LboxListview::InsertColumn(
nCol,
nFmt,
nWidth,
LString->szLboxString
);
}
void LboxListview::InsertColumn(
int nCol, int nFmt, int nWidth, LPTSTR szTitle
)
{
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;
ListView_InsertColumn(hWnd, nCol, &col);
}
| |