2.2.6.19.1 ListBox::AddString

Description

Syntax

int AddString( LPCSTR lpcsz )

Parameters

lpcsz

Return

Examples

EX1

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

void ListBox_AddString(Dialog& MyDlg)
{
	ListBox  m_List = MyDlg.GetItem(IDC_LIST1);    
	int nAdd = m_List.AddString("Test");
}

Remark

See Also

Header to Include

Control.h