ComboBox::GetLBText

Description

Syntax

void GetLBText( int nIndex, string & str )const

Parameters

nIndex
str

Return

Examples

EX1

#include <..\OriginLab\DialogEx.h>
 
#define IDC_COMBO1  1001
void ComboBox_GetLBText_ex1(Dialog& MyDlg)
{  
        string strText;
        ComboBox  m_cmbBox = MyDlg.GetItem(IDC_COMBO1);
        m_cmbBox.GetLBText(m_cmbBox.GetCurSel() ,strText);
        out_str(strText);
}

Remark

See Also

header to Include

Control.h