// UpdateListCtrl.h: interface for the CUpdateListCtrl class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_UPDATELISTCTRL_H__18689942_13B7_4064_9A39_FFC3AD1EBAE9__INCLUDED_)
#define AFX_UPDATELISTCTRL_H__18689942_13B7_4064_9A39_FFC3AD1EBAE9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifdef  BUILD_GUIDLL
#define     DLLCLASS    __declspec(dllexport)
#else
#define     DLLCLASS    __declspec(dllimport)
#endif

class DLLCLASS CUpdateListCtrl
{
public:
    CUpdateListCtrl();
    virtual ~CUpdateListCtrl();

    enum
    {
        FIRST_FIELD        = 0,
        REST_OF_ALL_FIELD  = -1,
        START_FROM_ODD_ROW = -1,
    };

//  read field values start from iStartField to the rest of the field from db and update
//  list control display values odd first then even
    static void ReadDbUpdateListCtrl(CListCtrl &listCtrl, CDaoRecordset &rs,
                                     int &iNextRowCount, int iStartField = FIRST_FIELD,
                                     int iFieldCount = REST_OF_ALL_FIELD, int iIndex = START_FROM_ODD_ROW);
};

#endif // !defined(AFX_UPDATELISTCTRL_H__18689942_13B7_4064_9A39_FFC3AD1EBAE9__INCLUDED_)
