@@ -15,16 +15,25 @@ void CLottoListCtrl::InitializeColumns()
1515 SetImageList (&imageList, LVSIL_SMALL);
1616}
1717
18- void CLottoListCtrl::InsertLottoRow (int index , const CString& numbersText , const CString& bonusText )
18+ void CLottoListCtrl::InsertLottoRow (int nIndex , const CString& strWinsNumber , const CString& strBonus )
1919{
2020 // CString gameStr;
2121 // gameStr.Format(_T("%d"), index + 1);
2222 // InsertItem(index, gameStr);
2323 // SetItemText(index, 1, numbersText);
2424 // SetItemText(index, 2, bonusText);
25- InsertItem (index, _T (" " ));
26- SetItemText (index, 0 , numbersText);
27- SetItemText (index, 1 , bonusText);
25+ InsertItem (nIndex, _T (" " ));
26+ SetItemText (nIndex, 0 , strWinsNumber);
27+ SetItemText (nIndex, 1 , strBonus);
28+ }
29+
30+ void CLottoListCtrl::InsertLottoRow (int nIndex, const CString& strWinsNumber, const CString& strBonus, const CString& strRank, const CString& strDate)
31+ {
32+ InsertItem (nIndex, _T (" " ));
33+ SetItemText (nIndex, 0 , strWinsNumber);
34+ SetItemText (nIndex, 1 , strBonus);
35+ SetItemText (nIndex, 2 , strRank);
36+ SetItemText (nIndex, 3 , strDate);
2837}
2938
3039void CLottoListCtrl::OnCustomDraw (NMHDR* pNMHDR, LRESULT* pResult)
0 commit comments