ComboBox::SetItemData

Description

Syntax

int SetItemData( int nIndex, DWORD dwData )

Parameters

nIndex
dwData

Return

Examples

EX1

#include <..\OriginLab\DialogEx.h>
 
#define IDC_COMBO1  1001
void ComboBox_SetItemData_ex1(Dialog& MyDlg)
{
        ComboBox        cmbBox = MyDlg.GetItem(IDC_COMBO1);
        if( cmbBox )
        {
                DWORD           dwData = 100;
                int nSetData = cmbBox.SetItemData(0, dwData);
        }
}

Remark

See Also

header to Include

Control.h