1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
int CListCtrlProjet::InsertItem(CString csDate,
CString csDirection,
CString csImat,
CString csAppl,
CString csEventName,
CString csParameters,
CString csChannel,
CString csService,
CString csSap
)
{
INT itemIndex = m_Events.Add(new CEvents(csDate,
csDirection,
csImat,
csAppl,
csEventName,
csParameters,
csChannel,
csService,
csSap)
);
// List item declaration
LVITEM m_listItem;
m_listItem.mask = LVIF_TEXT | LVIF_PARAM | LVIF_STATE;
m_listItem.iItem = itemIndex;
m_listItem.iSubItem = 0;
m_listItem.state = 0;
m_listItem.stateMask = 0;
m_listItem.pszText = LPSTR_TEXTCALLBACK;
m_listItem.lParam = (LPARAM) m_Events.GetAt(itemIndex);
return CListCtrl::InsertItem(&m_listItem);
} |
Partager