|
void ListView_AddTitle( HWND hWnd, int Fmt, int Width, LPSTR Title )
{
int Cols;
LV_COLUMN title;
Cols = ListView_GetColumnCount( hWnd );
ZeroMemory( &title, sizeof( LV_COLUMN ) );
title.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT;
title.fmt = Fmt;
title.cx = Width;
title.pszText = Title;
ListView_InsertColumn(hWnd, Cols, &title);
}
| |