2.2.6.19.11 ListBox::GetText

Description

Syntax

void GetText( int nIndex, string & str )

Parameters

nIndex
str

Return

Examples

EX1

#include <..\OriginLab\DialogEx.h>   // Dialog class
#define IDC_LIST1 1001
 
void ListBox_GetText(Dialog& MyDlg)
{
	ListBox  m_List = MyDlg.GetItem(IDC_LIST1);    
	string str;
	m_List.GetText(0,str);
	out_str(str);
}

Remark

See Also

Header to Include

Control.h