ListBox::GetSelItems

Description

Syntax

int GetSelItems( vector<uint> & vv )

Parameters

vv

Return

Examples

EX1

#include <..\OriginLab\DialogEx.h>   // Dialog class
#define IDC_LIST1 1001
 
void ListBox_GetSelItems(Dialog& MyDlg)
{
        ListBox  m_list1 = MyDlg.GetItem(IDC_LIST1);    
        vector<uint> vv;
        int nNumsSel = m_list1.GetSelItems(vv);
        for( int ii = 0; ii < vv.GetSize(); ii++ )
                out_int("ii = ", vv[ii]);
}

Remark

See Also

header to Include

Control.h