ListBox::SetItemData

Description

Syntax

int SetItemData( int nIndex, DWORD dwData )

Parameters

nIndex
dwData

Return

Examples

EX1

#include <..\OriginLab\DialogEx.h>   // Dialog class
#define IDC_LIST1 1001

void ListBox_SetItemData(Dialog& MyDlg)
{
        ListBox  m_List = MyDlg.GetItem(IDC_LIST1);
        DWORD dData = 100;
        int nSetData = m_List.SetItemData(0,dData);
}

Remark

See Also

header to Include

Control.h