462:
How can I sort by two-columns, one by date and one by time

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutSingleSort(VARIANT_FALSE);
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Index")))->PutFormatColumn(L"1 index ``");
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Date")))->PutSortType(EXLISTLib::SortDate);
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Time")));
		var_Column->PutSortType(EXLISTLib::SortTime);
		var_Column->PutFormatColumn(L"time(value)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add(long(0));
	var_Items->PutCaption(h,long(1),COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(2),COleDateTime(2001,1,1,10,00,00).operator DATE());
	h = var_Items->Add(long(0));
	var_Items->PutCaption(h,long(1),COleDateTime(2000,12,31,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(2),COleDateTime(2001,1,1,10,00,00).operator DATE());
	h = var_Items->Add(long(0));
	var_Items->PutCaption(h,long(1),COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(2),COleDateTime(2001,1,1,6,00,00).operator DATE());
	h = var_Items->Add(long(0));
	var_Items->PutCaption(h,long(1),COleDateTime(2000,12,31,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(2),COleDateTime(2001,1,1,8,00,00).operator DATE());
	h = var_Items->Add(long(0));
	var_Items->PutCaption(h,long(1),COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(2),COleDateTime(2001,1,1,8,00,00).operator DATE());
	h = var_Items->Add(long(0));
	var_Items->PutCaption(h,long(1),COleDateTime(2000,12,31,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(2),COleDateTime(2001,1,1,6,00,00).operator DATE());
spList1->PutLayout(L"multiplesort=\"C1:1 C2:1\"");
spList1->EndUpdate();

461:
How can I connect to a DBF file
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_FALSE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.0 Library'

	#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADODB.Recordset");
	rs->Open("Select * From foxcode.DBF","Provider=vfpoledb;Data Source=C:\\Program Files\\Microsoft Visual FoxPro 9\\",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spList1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spList1->EndUpdate();

460:
Does your control supports scrolling by touching the screen

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutColumnAutoResize(VARIANT_FALSE);
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.0 Library'

	#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
	rs->Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExTree\\Sample\\VB\\SAMPLE.MDB",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spList1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spList1->PutContinueColumnScroll(VARIANT_TRUE);
spList1->PutScrollBySingleLine(VARIANT_TRUE);
spList1->PutAutoDrag(EXLISTLib::AutoDragEnum(EXLISTLib::exAutoDragScrollOnShortTouch | EXLISTLib::exAutoDragScroll));

459:
How can I enlarge the size of the control's scroll bars, for using on touch screens

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutScrollBars(EXLISTLib::DisableBoth);
spList1->PutScrollWidth(32);
spList1->PutScrollHeight(32);
spList1->PutScrollButtonHeight(32);
spList1->PutScrollButtonWidth(32);

458:
Is there a syntax for conditional formatting of items, based on CellState/CellStateChange

// CellStateChanged event - Fired after cell's state is changed.
void OnCellStateChangedList1(long Item,long ColIndex)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
		#import <ExList.dll>
		using namespace EXLISTLib;
	*/
	EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
	EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
		var_Items->PutCaption(Item,long(2),var_Items->GetCellState(Item,long(0)));
}

EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutShowFocusRect(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSelBackMode(EXLISTLib::exTransparent);
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"%2 != 0",vtMissing);
	var_ConditionalFormat->PutBold(VARIANT_TRUE);
	var_ConditionalFormat->PutForeColor(RGB(255,0,0));
	var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToItems);
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"")));
	var_Column->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE);
	var_Column->PutWidth(16);
	var_Column->PutAllowSizing(VARIANT_FALSE);
spList1->GetColumns()->Add(L"Information");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Hidden")))->PutVisible(VARIANT_FALSE);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaption(var_Items->Add(""),long(1),"This is a bit of text associated");
	long h = var_Items->Add("");
	var_Items->PutCaption(h,long(1),"This is a bit of text associated");
	var_Items->PutCellState(h,long(0),1);
	var_Items->PutCaption(var_Items->Add(""),long(1),"This is a bit of text associated");
spList1->EndUpdate();

457:
How can I display the caption bellow to picture

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutScrollBySingleLine(VARIANT_TRUE);
spList1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif");
spList1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif");
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("<c><img>p1</img><br><c>your caption1");
	var_Items->PutCellSingleLine(h,long(0),VARIANT_FALSE);
	var_Items->PutCaptionFormat(h,long(0),EXLISTLib::exHTML);
	h = var_Items->Add("<c><img>p2</img><br><c>your caption2");
	var_Items->PutCellSingleLine(h,long(0),VARIANT_FALSE);
	var_Items->PutCaptionFormat(h,long(0),EXLISTLib::exHTML);
spList1->EndUpdate();

456:
How can I add a vertical padding

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutDrawGridLines(EXLISTLib::exAllLines);
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Padding")));
	var_Column->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE);
	var_Column->PutDef(EXLISTLib::exCellSingleLine,VARIANT_FALSE);
	var_Column->PutDef(EXLISTLib::exCellPaddingLeft,long(6));
	var_Column->PutDef(EXLISTLib::exCellPaddingRight,long(6));
	var_Column->PutDef(EXLISTLib::exCellPaddingTop,long(6));
	var_Column->PutDef(EXLISTLib::exCellPaddingBottom,long(6));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("padding");
	var_Items->Add("padding");
spList1->EndUpdate();

455:
How do you embed HTML options into the anchor click string

// AnchorClick event - Occurs when an anchor element is clicked.
void OnAnchorClickList1(LPCTSTR AnchorID,LPCTSTR Options)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
		#import <ExList.dll>
		using namespace EXLISTLib;
	*/
	EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
	OutputDebugStringW( L"AnchorID" );
	OutputDebugStringW( L"Options" );
}

EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Car")))->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("<a mazda_1;options for 1>Mazda <b>1</b></a>");
	var_Items->Add("<a mazda_2;options for 2>Mazda <b>2</b></a>");
	var_Items->Add("<a mazda_3;options for 3a>Mazda <b>3.a</b></a>");
	var_Items->Add("<a mazda_3;options for 3b>Mazda <b>3.b</b></a>");
spList1->EndUpdate();

454:
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 3)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BVEIQAAYAQGKIYBkAKBQAGaAoDDMOQwQwAAxjGKEEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQCWIAzATGYBRfIUEgjBM6ExwG78e") +
"gBHp/ZpkACIJJAaRjHQdJxGKKMQB9DIhCZpeKhWgkKIJBzOEyBRC4ERBGqNGrsIgLEqWZpnWhaNpWXYTLyBN64LhuK46g53O6wLxvK6hEr2dJ/YBcIAOfghf4NQ7EMRx" +
"LC8Mw3BDvYDkOAABAIgI=");
spList1->PutSelBackColor(0x1fffffe);
spList1->PutShowFocusRect(VARIANT_FALSE);
spList1->GetColumns()->Add(L"Items");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemBackColor(var_Items->Add("red"),RGB(255,0,0));
	var_Items->PutItemBackColor(var_Items->Add("blue"),RGB(0,0,255));
	var_Items->PutItemBackColor(var_Items->Add("green"),RGB(0,255,0));
spList1->EndUpdate();

453:
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutSelBackMode(EXLISTLib::exTransparent);
spList1->PutShowFocusRect(VARIANT_FALSE);
spList1->GetColumns()->Add(L"Items");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemBackColor(var_Items->Add("red"),RGB(255,0,0));
	var_Items->PutItemBackColor(var_Items->Add("blue"),RGB(0,0,255));
	var_Items->PutItemBackColor(var_Items->Add("green"),RGB(0,255,0));
spList1->EndUpdate();

452:
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutSelBackColor(spList1->GetBackColor());
spList1->PutSelForeColor(spList1->GetForeColor());
spList1->PutShowFocusRect(VARIANT_TRUE);
spList1->GetColumns()->Add(L"Items");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemBackColor(var_Items->Add("red"),RGB(255,0,0));
	var_Items->PutItemBackColor(var_Items->Add("blue"),RGB(0,0,255));
	var_Items->PutItemBackColor(var_Items->Add("green"),RGB(0,255,0));
spList1->EndUpdate();

451:
I am using the FormatColumn property, but is it also possible to have a blank field when the value is '0'. I've tried the 'leading zero' flag in the FormatColumn, but that did not work

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency")))->PutFormatColumn(L"int(value) != 0 ? (value format `0||3|,`) : ``");
spList1->GetItems()->Add(long(123456789));
spList1->GetItems()->Add(long(1234));
spList1->GetItems()->Add(long(0));
spList1->GetItems()->Add(long(2345));

450:
Do you have a VB sample on how to use .FormatColumn to show this number '123456789' like '123,456,789'

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency")))->PutFormatColumn(L"value format `0||3|,`");
spList1->GetItems()->Add(long(123456789));
spList1->GetItems()->Add(long(1234));

449:
Is it possible to change the image while do OLE Drag and Drop operations

// OLEStartDrag event - Occurs when the OLEDrag method is called.
void OnOLEStartDragList1(LPDISPATCH Data,long FAR* AllowedEffects)
{
	// Data.SetData(Items.FocusItem)
}

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
spList1->GetItems()->Add("Item 1");
spList1->GetItems()->Add("Item 2");
spList1->PutOLEDropMode(EXLISTLib::exOLEDropManual);
spList1->PutHTMLPicture(L"OLEDragDropImage","C:\\Program Files\\Exontrol\\ExList\\Sample\\VB\\UNICODE\\unicode.jpg");

448:
Is it possible to change the image while do OLE Drag and Drop operations

// OLEStartDrag event - Occurs when the OLEDrag method is called.
void OnOLEStartDragList1(LPDISPATCH Data,long FAR* AllowedEffects)
{
	// Data.SetData(Items.FocusItem)
}

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
spList1->GetItems()->Add("Item 1");
spList1->GetItems()->Add("Item 2");
spList1->PutOLEDropMode(EXLISTLib::exOLEDropManual);
spList1->GetVisualAppearance()->Add(1,"C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\EBN\\xpbselIcon.ebn");
spList1->PutBackground(EXLISTLib::exDragDropAfter,0x1000000);
spList1->PutBackground(EXLISTLib::exDragDropBefore,RGB(255,255,255));

447:
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a snapshot
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spList1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\card.png");
spList1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\sun.png");
spList1->PutAutoDrag(EXLISTLib::exAutoDragCopySnapShot);
spList1->PutShowFocusRect(VARIANT_FALSE);
spList1->PutDefaultItemHeight(26);
spList1->GetColumns()->Add(L"Task");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaptionFormat(var_Items->Add("<img>p1:32</img> Group 1"),long(0),EXLISTLib::exHTML);
	var_Items->PutCaptionFormat(var_Items->Add("<img>p2:32</img> Group 2"),long(0),EXLISTLib::exHTML);
spList1->EndUpdate();

446:
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a image

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\card.png");
spList1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\sun.png");
spList1->PutHeaderHeight(24);
spList1->PutDefaultItemHeight(48);
spList1->PutDrawGridLines(EXLISTLib::GridLinesEnum(0xfffffffc | EXLISTLib::exVLines));
spList1->PutGridLineColor(RGB(240,240,240));
spList1->PutSelBackMode(EXLISTLib::exTransparent);
spList1->PutColumnAutoResize(VARIANT_FALSE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.0 Library'

	#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
	rs->Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExList\\Sample\\SAMPLE.MDB",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spList1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spList1->GetColumns()->GetItem(long(0))->PutDef(EXLISTLib::exCaptionFormat,long(1));
spList1->GetColumns()->GetItem(long(0))->PutFormatColumn(L"value + ` <img>p` + (1 + (value mod 3 ) ) + `</img>`");
spList1->GetColumns()->GetItem(long(0))->PutWidth(112);
spList1->PutAutoDrag(EXLISTLib::exAutoDragCopyImage);
spList1->PutSingleSel(VARIANT_FALSE);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutSelectItem(1,VARIANT_TRUE);
	var_Items->PutSelectItem(2,VARIANT_TRUE);
	var_Items->PutSelectItem(3,VARIANT_TRUE);
spList1->EndUpdate();

445:
How can copy and paste the selection to Microsoft Word, Excel or any OLE compliant application, as a text

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_FALSE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.0 Library'

	#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
	rs->Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExList\\Sample\\SAMPLE.MDB",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spList1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spList1->PutAutoDrag(EXLISTLib::exAutoDragCopyText);
spList1->PutSingleSel(VARIANT_FALSE);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutSelectItem(1,VARIANT_TRUE);
	var_Items->PutSelectItem(3,VARIANT_TRUE);
	var_Items->PutSelectItem(4,VARIANT_TRUE);
	var_Items->PutSelectItem(5,VARIANT_TRUE);
spList1->EndUpdate();

444:
How can I change the row's position to another, by drag and drop. Is it possible

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutAutoDrag(EXLISTLib::exAutoDragPosition);
spList1->GetColumns()->Add(L"Task");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->Add("Item 4");
spList1->EndUpdate();

443:
Does your control support subscript or superscript, in HTML captions

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")))->PutDef(EXLISTLib::exCaptionFormat,long(1));
spList1->GetItems()->Add("<sha ;;0>Event <b><font ;6><off -6>2<off 4>3<off 4>1");

442:
Is there any property I can save and restore automatically the current setting, column position, size, and so on (2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->GetColumns()->Add(L"Column");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
spList1->PutLayout(L"Select=\"0\";SingleSort=\"C0:2\";Columns=1");
spList1->EndUpdate();

441:
Is there any property I can save and restore automatically the current setting, column position, size, and so on (1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->GetColumns()->Add(L"Column");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
spList1->PutLayout(_bstr_t("gBjAAwAAuABmABpABsAB0ABlAByhoAPIAOEPAA9gYABoABQAgUEg0XN4AOcJicKkpujMbjsfkMFk0YhkQgUOjUEl8gjcGO0ok8KMULjEaGMcj08kQAO8oMkTNEtGwAG") +
"QAqc7gUlhh1ABtAEsk9GpEfhElgVcsMupNlnlonlaAFcr0shUsp8QPEtnVJqJhmcIhUMh0QiU5sYAqMngUSuEMw07k8Qv0SgVRrNEuVflF2jF5x9JyNEm0TjQijemyE0" +
"jE3t+YruauoAu4Az1qj9BzRn0UzksSnAA0xDjY6qnAw8OiUQ0dwzN0zWz2t7j8/xURAGNvWH6k8xlEhklhEI0O/6QAgI=");
spList1->EndUpdate();

440:
Is there any public method to export the selected data

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Header");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->PutSelectItem(var_Items->Add("Item 2"),VARIANT_TRUE);
	var_Items->Add("Item 3");
OutputDebugStringW( _bstr_t(spList1->Export("","sel")) );

439:
How can I change the visual aspect of the links in the sort bar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_FALSE);
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.0 Library'

	#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
	rs->Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\Exontrol\\ExGrid\\Sample\\SAMPLE.MDB",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spList1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spList1->PutSortBarHeight(24);
spList1->PutHeaderHeight(24);
spList1->PutBackColorSortBar(RGB(240,240,240));
spList1->PutBackColorSortBarCaption(spList1->GetBackColor());
spList1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BdsIQAAYAQGKIYBkAKBQAGaAoDDgNw0QwAAxjMK0EwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQiiCYsS5GQBSFDcOwHGyQYDkCQpA") +
"AWL4tCyMc7QHKAWhrEAbJjgQYJUh+TQAAZCIJRXRQAL/K6rKwnSCQIgkUBpGKdBynEYoYxAfyESCJWyIahWAwoQjUMB1HLQAAxC5kKbkIxyBABFBdVjVeBYG78Bz+ABj" +
"EovbAMEwPBqAMwmIAZDheA4FR4AGhTXKcbxrFaXZSzKckPRoADSZq1Sg5LjDJI2ABqU6ABqNLZtJKsZS4apABrWeZ3Q7QMLdFTwA4PH6EZhxXAYbTVeaPZjQIBAgI");
spList1->PutSortBarVisible(VARIANT_TRUE);
spList1->PutSortBarCaption(L"Drag a <b>column</b> header here to group by that column.");
EXLISTLib::IColumnPtr var_Column = spList1->GetColumns()->GetItem(long(1));
	var_Column->PutAlignment(EXLISTLib::CenterAlignment);
	var_Column->PutDef(EXLISTLib::exCellBackColor,long(15790320));
	var_Column->PutSortOrder(VARIANT_TRUE);
EXLISTLib::IColumnPtr var_Column1 = spList1->GetColumns()->GetItem(long(5));
	var_Column1->PutAlignment(EXLISTLib::CenterAlignment);
	var_Column1->PutDef(EXLISTLib::exCellBackColor,long(16119285));
	var_Column1->PutSortOrder(VARIANT_TRUE);
spList1->PutBackground(EXLISTLib::exSortBarLinkColor,0x1000000);
spList1->EndUpdate();

438:
How can I have a case-insensitive filter (exFilterDoCaseSensitive flag is not set)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Car")));
		var_Column->PutDisplayFilterButton(VARIANT_TRUE);
		var_Column->PutFilterType(EXLISTLib::exFilter);
		var_Column->PutFilter(L"MAZDA");
	EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Equipment")));
		var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
		var_Column1->PutDisplayFilterPattern(VARIANT_FALSE);
		var_Column1->PutCustomFilter(L"Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*");
		var_Column1->PutFilterType(EXLISTLib::exPattern);
		var_Column1->PutFilter(L"AIR BAG");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"Air Bag");
	var_Items->PutCaption(var_Items->Add("Toyota"),long(1),"Air Bag,Air condition");
	var_Items->PutCaption(var_Items->Add("Ford"),long(1),"Air condition");
	var_Items->PutCaption(var_Items->Add("Nissan"),long(1),"Air Bag,ABS,ESP");
	var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"Air Bag, ABS,ESP");
	var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"ABS,ESP");
spList1->ApplyFilter();
spList1->EndUpdate();

437:
How can I have a case-sensitive filter

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Car")));
		var_Column->PutDisplayFilterButton(VARIANT_TRUE);
		var_Column->PutFilterType(EXLISTLib::FilterTypeEnum(EXLISTLib::exFilterDoCaseSensitive | EXLISTLib::exFilter));
		var_Column->PutFilter(L"Mazda");
	EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Equipment")));
		var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
		var_Column1->PutDisplayFilterPattern(VARIANT_FALSE);
		var_Column1->PutCustomFilter(L"Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*");
		var_Column1->PutFilterType(EXLISTLib::FilterTypeEnum(EXLISTLib::exFilterDoCaseSensitive | EXLISTLib::exPattern));
		var_Column1->PutFilter(L"Air Bag");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"Air Bag");
	var_Items->PutCaption(var_Items->Add("Toyota"),long(1),"Air Bag,Air condition");
	var_Items->PutCaption(var_Items->Add("Ford"),long(1),"Air condition");
	var_Items->PutCaption(var_Items->Add("Nissan"),long(1),"Air Bag,ABS,ESP");
	var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"Air Bag, ABS,ESP");
	var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"ABS,ESP");
spList1->ApplyFilter();
spList1->EndUpdate();

436:
I have several columns, but noticed that the filter is using AND between columns, but I need OR clause for filtering. Is it possible

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Item")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilter(L"Child 1");
	var_Column->PutFilterType(EXLISTLib::exFilter);
EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date")));
	var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column1->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column1->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column1->PutFilterList(EXLISTLib::FilterListEnum(EXLISTLib::exShowExclude | EXLISTLib::exShowFocusItem | EXLISTLib::exShowCheckBox | EXLISTLib::exNoItems));
	var_Column1->PutFilter(L"COleDateTime(2010,12,28,0,00,00).operator DATE()");
	var_Column1->PutFilterType(EXLISTLib::exDate);
spList1->PutFilterCriteria(L"%0 or %1");
spList1->PutDescription(EXLISTLib::exFilterBarOr,L"<font ;18><fgcolor=FF0000>or</fgcolor></font>");
spList1->PutDescription(EXLISTLib::exFilterBarAnd,L"<font ;18><fgcolor=FF0000>and</fgcolor></font>");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root 1");
	var_Items->PutCaption(var_Items->Add("Child 1"),long(1),COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->PutCaption(var_Items->Add("Child 2"),long(1),COleDateTime(2010,12,28,0,00,00).operator DATE());
	h = var_Items->Add("Root 2");
	var_Items->PutCaption(var_Items->Add("Child 1"),long(1),COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->PutCaption(var_Items->Add("Child 2"),long(1),COleDateTime(2010,12,30,0,00,00).operator DATE());
spList1->ApplyFilter();
spList1->EndUpdate();

435:
Is it possible exclude the dates being selected in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date")));
	var_Column->PutSortType(EXLISTLib::SortDate);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column->PutFilterList(EXLISTLib::FilterListEnum(EXLISTLib::exShowExclude | EXLISTLib::exShowFocusItem | EXLISTLib::exShowCheckBox | EXLISTLib::exNoItems));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,28,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,30,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,31,0,00,00).operator DATE());
spList1->EndUpdate();

434:
How can I display a calendar control inside the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date")));
	var_Column->PutSortType(EXLISTLib::SortDate);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column->PutFilterList(EXLISTLib::FilterListEnum(EXLISTLib::exShowFocusItem | EXLISTLib::exShowCheckBox | EXLISTLib::exNoItems));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,28,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,30,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,31,0,00,00).operator DATE());
spList1->EndUpdate();

433:
Is it possible to include the dates as checkb-boxes in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Dates")));
	var_Column->PutSortType(EXLISTLib::SortDate);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column->PutFilterList(EXLISTLib::FilterListEnum(EXLISTLib::exShowFocusItem | EXLISTLib::exShowCheckBox));
	var_Column->PutFilter(L"to 12/27/2010");
	var_Column->PutFilterType(EXLISTLib::exDate);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,28,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,30,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,31,0,00,00).operator DATE());
spList1->ApplyFilter();
spList1->EndUpdate();

432:
How can I filter items for dates before a specified date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Dates")));
	var_Column->PutSortType(EXLISTLib::SortDate);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column->PutFilterList(EXLISTLib::FilterListEnum(EXLISTLib::exShowFocusItem | EXLISTLib::exNoItems));
	var_Column->PutFilter(L"to 12/27/2010");
	var_Column->PutFilterType(EXLISTLib::exDate);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,28,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,30,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,31,0,00,00).operator DATE());
spList1->ApplyFilter();
spList1->EndUpdate();

431:
Is it possible to filter dates

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Dates")));
	var_Column->PutSortType(EXLISTLib::SortDate);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column->PutFilterList(EXLISTLib::FilterListEnum(EXLISTLib::exShowFocusItem | EXLISTLib::exNoItems));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,28,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,30,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2010,12,31,0,00,00).operator DATE());
spList1->EndUpdate();

430:
Is it possible to change the Exclude field name to something different, in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutDescription(EXLISTLib::exFilterBarExclude,L"Leaving out");
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXLISTLib::FilterListEnum(EXLISTLib::exShowExclude | EXLISTLib::exShowFocusItem | EXLISTLib::exShowCheckBox));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root 1");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	h = var_Items->Add("Root 2");
	var_Items->Add("Child 1");
spList1->EndUpdate();

429:
How can I display the Exclude field in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXLISTLib::FilterListEnum(EXLISTLib::exShowExclude | EXLISTLib::exShowFocusItem | EXLISTLib::exShowCheckBox));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root 1");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	h = var_Items->Add("Root 2");
	var_Items->Add("Child 1");
spList1->EndUpdate();

428:
Is it possible to show and ensure the focused item from the control, in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXLISTLib::FilterListEnum(EXLISTLib::exShowFocusItem | EXLISTLib::exShowCheckBox));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root 1");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	h = var_Items->Add("Root 2");
	var_Items->Add("Child 1");
	var_Items->PutSelectItem(var_Items->Add("Child 2"),VARIANT_TRUE);
spList1->EndUpdate();

427:
Is it possible to show only blanks items with no listed items from the control

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXLISTLib::FilterListEnum(EXLISTLib::exShowBlanks | EXLISTLib::exNoItems));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root 1");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	h = var_Items->Add("Root 2");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
spList1->EndUpdate();

426:
How can I include the blanks items in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXLISTLib::FilterListEnum(EXLISTLib::exShowBlanks | EXLISTLib::exShowCheckBox));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root 1");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	h = var_Items->Add("Root 2");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
spList1->EndUpdate();

425:
How can I select multiple items in the drop down filter window, using check-boxes

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXLISTLib::exShowCheckBox);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root 1");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	h = var_Items->Add("Root 2");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
spList1->EndUpdate();

424:
Is it possible to allow a single item being selected in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXLISTLib::exSingleSel);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root 1");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	h = var_Items->Add("Root 2");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
spList1->EndUpdate();

423:
How can I display no (All) item in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutDescription(EXLISTLib::exFilterBarAll,L"");
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_TRUE);
	var_Column->PutFilterList(EXLISTLib::exNoItems);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root 1");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	h = var_Items->Add("Root 2");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
spList1->EndUpdate();

422:
Is it possible to display no items in the drop down filter window, so only the pattern is visible

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_TRUE);
	var_Column->PutFilterList(EXLISTLib::exNoItems);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root 1");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	h = var_Items->Add("Root 2");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
spList1->EndUpdate();

421:
How can I sort the value gets listed in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutDescription(EXLISTLib::exFilterBarAll,L"");
spList1->PutDescription(EXLISTLib::exFilterBarBlanks,L"");
spList1->PutDescription(EXLISTLib::exFilterBarNonBlanks,L"");
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"P1")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXLISTLib::exSortItemsDesc);
EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"P2")));
	var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column1->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column1->PutFilterList(EXLISTLib::exSortItemsAsc);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Z3");
	var_Items->PutCaption(h,long(1),"C");
	var_Items->PutCaption(var_Items->Add("Z1"),long(1),"B");
	var_Items->PutCaption(var_Items->Add("Z2"),long(1),"A");

420:
How can I add or change the padding (spaces) for captions in the control's header

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Padding-Left")))->PutDef(EXLISTLib::exHeaderPaddingLeft,long(18));
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Padding-Right")));
	var_Column->PutDef(EXLISTLib::exHeaderPaddingRight,long(18));
	var_Column->PutHeaderAlignment(EXLISTLib::RightAlignment);
spList1->EndUpdate();

419:
Do you have any plans to add cell spacing and cell padding to the cells

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutDrawGridLines(EXLISTLib::GridLinesEnum(0xfffffffc | EXLISTLib::exVLines));
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Padding-Left")));
	var_Column->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE);
	var_Column->PutDef(EXLISTLib::exCellPaddingLeft,long(18));
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"No-Padding")))->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Empty")))->PutPosition(0);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaption(var_Items->Add("Item A.1"),long(1),"Item A.2");
	var_Items->PutCaption(var_Items->Add("Item B.1"),long(1),"Item B.2");
	var_Items->PutCaption(var_Items->Add("Item C.1"),long(1),"Item C.2");
spList1->EndUpdate();

418:
Is it possible display numbers in the same format no matter of regional settings in the control panel

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Def")))->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add(double(100000.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '') +  ' <fgcolor=808080>(default positive)'");
	h = var_Items->Add(double(100000.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '2|.|3|,|1|1')");
	h = var_Items->Add(double(-100000.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '') +  ' <fgcolor=808080>(default negative)'");
	h = var_Items->Add(double(-100000.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '2|.|3|,|1|1')");
spList1->EndUpdate();

417:
Is it possible to add a 0 for numbers less than 1 instead .7 to show 0.8

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Def")))->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add(double(0.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '') +  ' <fgcolor=808080>(default)'");
	h = var_Items->Add(double(0.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '|||||0') +  ' <fgcolor=808080>(Display no leading zeros)'");
spList1->EndUpdate();

416:
How can I specify the format for negative numbers

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Def")))->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add(double(-100000.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '') +  ' <fgcolor=808080>(default)'");
	h = var_Items->Add(double(-100000.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '||||1') +  ' <fgcolor=808080>(Negative sign, number; for example, -1.1)'");
spList1->EndUpdate();

415:
Is it possible to change the grouping character when display numbers

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Def")))->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add(double(100000.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '') +  ' <fgcolor=808080>(default)'");
	h = var_Items->Add(double(100000.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '|||-') +  ' <fgcolor=808080>(grouping character is -)'");
spList1->EndUpdate();

414:
How can I display numbers with 2 digits in each group

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Def")))->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add(double(100000.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '') +  ' <fgcolor=808080>(default)'");
	h = var_Items->Add(double(100000.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '||2') +  ' <fgcolor=808080>(grouping by 2 digits)'");
spList1->EndUpdate();

413:
How can I display my numbers using a different decimal separator

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Def")))->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add(double(100.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '') +  ' <fgcolor=808080>(default)'");
	h = var_Items->Add(double(100.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '|;') +  ' <fgcolor=808080>(decimal separator is <b>;</b>)'");
spList1->EndUpdate();

412:
Is it possible to display the numbers using 3 (three) digits

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Def")))->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add(double(100.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '') +  ' <fgcolor=808080>(default)'");
	h = var_Items->Add(double(100.27));
	var_Items->PutFormatCell(h,long(0),L"(value format '3') +  ' <fgcolor=808080>(3 digits)'");
	h = var_Items->Add(double(100.27));
	var_Items->PutFormatCell(h,long(0),L"(value format 2) +  '  <fgcolor=808080>(2 digits)'");
	h = var_Items->Add(double(100.27));
	var_Items->PutFormatCell(h,long(0),L"(value format 1) +  ' <fgcolor=808080>(1 digit)'");
spList1->EndUpdate();

411:
Is it possible to format numbers

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSelBackColor(spList1->GetBackColor());
spList1->PutSelForeColor(spList1->GetForeColor());
spList1->PutShowFocusRect(VARIANT_TRUE);
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Name");
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"A")));
		var_Column->PutSortType(EXLISTLib::SortNumeric);
		var_Column->PutAllowSizing(VARIANT_FALSE);
		var_Column->PutWidth(36);
		var_Column->PutFormatColumn(L"len(value) ? value + ' +'");
	EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"B")));
		var_Column1->PutSortType(EXLISTLib::SortNumeric);
		var_Column1->PutAllowSizing(VARIANT_FALSE);
		var_Column1->PutWidth(36);
		var_Column1->PutFormatColumn(L"len(value) ? value + ' +'");
	EXLISTLib::IColumnPtr var_Column2 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"C")));
		var_Column2->PutSortType(EXLISTLib::SortNumeric);
		var_Column2->PutAllowSizing(VARIANT_FALSE);
		var_Column2->PutWidth(36);
		var_Column2->PutFormatColumn(L"len(value) ? value + ' ='");
	EXLISTLib::IColumnPtr var_Column3 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"A+B+C")));
		var_Column3->PutSortType(EXLISTLib::SortNumeric);
		var_Column3->PutWidth(64);
		var_Column3->PutComputedField(L"dbl(%1)+dbl(%2)+dbl(%3)");
		var_Column3->PutFormatColumn(_bstr_t("type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00") +
"00FF>+'+(value format '2|.|3|,' ): '0.00') )");
		var_Column3->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item");
	var_Items->PutCaptionFormat(h,long(4),EXLISTLib::exComputedField);
	h = var_Items->Add("Item 1");
	var_Items->PutCaption(h,long(1),long(7));
	var_Items->PutCaption(h,long(2),long(3));
	var_Items->PutCaption(h,long(3),long(1));
	h = var_Items->Add("Item 2");
	var_Items->PutCaption(h,long(1),long(-2));
	var_Items->PutCaption(h,long(2),long(-2));
	var_Items->PutCaption(h,long(3),long(-4));
	h = var_Items->Add("Item 3");
	var_Items->PutCaption(h,long(1),long(2));
	var_Items->PutCaption(h,long(2),long(2));
	var_Items->PutCaption(h,long(3),long(-4));
spList1->EndUpdate();

410:
Is it possible background color displayed when the mouse passes over an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->GetColumns()->Add(L"Def");
spList1->PutHotBackColor(RGB(0,0,128));
spList1->PutHotForeColor(RGB(255,255,255));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item A");
	var_Items->Add("Item B");
	var_Items->Add("Item C");
spList1->EndUpdate();

409:
Is it possible to specify the cell's value but still want to display some formatted text instead the value

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Name");
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Values")));
		var_Column->PutSortType(EXLISTLib::SortNumeric);
		var_Column->PutAllowSizing(VARIANT_FALSE);
		var_Column->PutWidth(64);
		var_Column->PutFormatColumn(L"((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)");
		var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutFormatCell(var_Items->Add("Item A"),long(1),L"`<none>`");
	var_Items->PutCaption(var_Items->Add("Item 1"),long(1),long(10));
	var_Items->PutCaption(var_Items->Add("Item 2"),long(1),long(15));
	var_Items->PutCaption(var_Items->Add("Item 3"),long(1),long(25));
spList1->EndUpdate();

408:
I am using the FormatColumn to display the current currency, but would like hide some values. Is it possible

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Name");
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Values")));
		var_Column->PutSortType(EXLISTLib::SortNumeric);
		var_Column->PutAllowSizing(VARIANT_FALSE);
		var_Column->PutWidth(64);
		var_Column->PutFormatColumn(L"((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)");
		var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutFormatCell(var_Items->Add("Item A"),long(1),L" ");
	var_Items->PutCaption(var_Items->Add("Item 1"),long(1),long(10));
	var_Items->PutCaption(var_Items->Add("Item 2"),long(1),long(15));
	var_Items->PutCaption(var_Items->Add("Item 3"),long(1),long(25));
spList1->EndUpdate();

407:
I am using the FormatColumn to format my columns. Is it possible to ignore the SelForeColor, so the foreground color for selected items does not override my settings

// SelectionChanged event - Fired after a new item is selected.
void OnSelectionChangedList1()
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
		#import <ExList.dll>
		using namespace EXLISTLib;
	*/
	EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
	EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
		var_Items->ClearItemBackColor(-1);
		var_Items->PutItemBackColor(var_Items->GetSelectedItem(0),RGB(128,255,255));
}

EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSelForeColor(spList1->GetForeColor());
spList1->PutSelBackColor(spList1->GetBackColor());
spList1->PutShowFocusRect(VARIANT_FALSE);
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Format")));
		var_Column->PutFormatColumn(_bstr_t("type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00") +
"00FF>+'+(value format '2|.|3|,' ): '0.00') )");
		var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(long(10));
	var_Items->Add(long(-8));
spList1->EndUpdate();

406:
Is it possible to change the height for all items at once

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->GetColumns()->Add(L"Items");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->Add("Item 4");
spList1->EndUpdate();
spList1->PutDefaultItemHeight(12);
spList1->GetItems()->PutItemHeight(-1,12);

405:
How can I change the shape of the line to be shown when user drag and drop data over the control

// OLEStartDrag event - Occurs when the OLEDrag method is called.
void OnOLEStartDragList1(LPDISPATCH Data,long FAR* AllowedEffects)
{
	// Data.SetData("data to be dragged")
}

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutOLEDropMode(EXLISTLib::exOLEDropManual);
spList1->GetVisualAppearance()->Add(1,"C:\\Program Files\\Exontrol\\ExList\\Sample\\VB\\DragDrop\\insert_bottom.ebn");
spList1->PutBackground(EXLISTLib::exListOLEDropPosition,0x1000000);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");

404:
How can I highlight the item from cursor when the user drag and drop data over the control

// OLEStartDrag event - Occurs when the OLEDrag method is called.
void OnOLEStartDragList1(LPDISPATCH Data,long FAR* AllowedEffects)
{
	// Data.SetData("data to be dragged")
}

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutOLEDropMode(EXLISTLib::exOLEDropManual);
spList1->PutBackground(EXLISTLib::exListOLEDropPosition,RGB(1,0,0));
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");

403:
How can I start drag and drop items

// OLEStartDrag event - Occurs when the OLEDrag method is called.
void OnOLEStartDragList1(LPDISPATCH Data,long FAR* AllowedEffects)
{
	// Data.SetData("to be carried by drag and drop")
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
		#import <ExList.dll>
		using namespace EXLISTLib;
	*/
	EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
	AllowedEffects = 1;
}

EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutOLEDropMode(EXLISTLib::exOLEDropManual);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
spList1->EndUpdate();

402:
When I'm trying to show string with "line break" character (vbCrLF) in a textbox, it shows 2 squares. Is there any way to hide these squares

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Value");
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"CellSingleLine = False")));
		var_Column->PutComputedField(L"%0");
		var_Column->PutDef(EXLISTLib::exCellSingleLine,VARIANT_FALSE);
	EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"FormatColumn/replace CRLF")));
		var_Column1->PutComputedField(L"%0");
		var_Column1->PutFormatColumn(L"value replace `\\r\\n` with ``");
	EXLISTLib::IColumnPtr var_Column2 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"FormatColumn/replace TAB,CRLF")));
		var_Column2->PutComputedField(L"%0");
		var_Column2->PutFormatColumn(L"(value replace `\\t` with ``) replace `\\r\\n` with ``");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("a\\ta\\r\\nb\\tb");

401:
The Column.Alignment property does not seem to work for cells with images in them. What can be done

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spList1->PutDrawGridLines(EXLISTLib::exAllLines);
spList1->PutHeaderHeight(24);
spList1->PutDefaultItemHeight(24);
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Image")));
	var_Column->PutAllowSizing(VARIANT_FALSE);
	var_Column->PutWidth(32);
	var_Column->PutHTMLCaption(L"<img>1</img>");
	var_Column->PutHeaderAlignment(EXLISTLib::CenterAlignment);
	var_Column->PutAlignment(EXLISTLib::CenterAlignment);
	var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1));
spList1->GetColumns()->Add(L"Rest");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("<img>1</img>");
	var_Items->Add("<img>2</img>");
	var_Items->Add("<img>3</img>");
spList1->EndUpdate();

400:
Can I change the format of date to be shown in the control

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Default");
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Format.1")));
		var_Column->PutComputedField(L"%0");
		var_Column->PutFormatColumn(L"dateF(value) replace `/` with `-`");
	EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Format.2")));
		var_Column1->PutComputedField(L"%0");
		var_Column1->PutDef(EXLISTLib::exCaptionFormat,long(1));
		var_Column1->PutFormatColumn(L"`<b>`+ shortdate(value) + `</b> ` + timeF(value)");
	EXLISTLib::IColumnPtr var_Column2 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Format.3")));
		var_Column2->PutComputedField(L"%0");
		var_Column2->PutDef(EXLISTLib::exCaptionFormat,long(1));
		var_Column2->PutFormatColumn(_bstr_t("( dateF(value) replace `/` with `-` ) + ` <b>`+ ( weekday(value) case ( 0 : `Su`; 1 : `Mo`; 2 : `Tu`; 3 : `We`; 4 : `Th`; 5 : `") +
"Fr`; 6 : `Sa`) )");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Items->Add(COleDateTime(2001,1,2,10,00,00).operator DATE());

399:
How can I put a picture on the cell's background (method 3)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spList1->GetVisualAppearance()->Add(2,"CP:1 0 0 -164 0");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"column");
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"column")));
		var_Column->PutAlignment(EXLISTLib::CenterAlignment);
		var_Column->PutHeaderAlignment(EXLISTLib::CenterAlignment);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long i = var_Items->Add(vtMissing);
	var_Items->PutSelectableItem(i,VARIANT_FALSE);
	var_Items->PutCaption(i,long(1),"caption");
	var_Items->PutCellBackColor(i,long(1),0x2000000);

398:
How can I put a picture on the cell's background (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"column");
	var_Columns->Add(L"column");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long i = var_Items->Add(vtMissing);
	var_Items->PutSelectableItem(i,VARIANT_FALSE);
	var_Items->PutCaption(i,long(1),"caption");
	var_Items->PutCellBackColor(i,long(1),0x1000000);
	var_Items->PutCellPicture(i,long(1),((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\auction.gif`)"))));
	var_Items->PutCellPictureWidth(i,long(1),128);
	var_Items->PutCellPictureHeight(i,long(1),spList1->GetDefaultItemHeight());

397:
How can I put a picture on the cell's background (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"column");
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"column")));
		var_Column->PutAlignment(EXLISTLib::CenterAlignment);
		var_Column->PutHeaderAlignment(EXLISTLib::CenterAlignment);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long i = var_Items->Add(vtMissing);
	var_Items->PutSelectableItem(i,VARIANT_FALSE);
	var_Items->PutCaption(i,long(1),"caption");
	var_Items->PutCellBackColor(i,long(1),0x1000000);

396:
How do I access the cells, or how do I get the values in the columns

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"C1");
	var_Columns->Add(L"C2");
	var_Columns->Add(L"C3");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->PutCaption(h,long(1),"SubItem 1.1");
	var_Items->PutCaption(h,long(2),"SubItem 1.2");
	OutputDebugStringW( _bstr_t(var_Items->GetCaption(h,long(2))) );

395:
How can I apply the same ConditionalFormat on more than 1(one) column (multiple columns and not on item)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1","K1");
	var_ConditionalFormat->PutBackColor(RGB(255,0,0));
	var_ConditionalFormat->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x1));
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat1 = spList1->GetConditionalFormats()->Add(L"1","K2");
	var_ConditionalFormat1->PutBackColor(RGB(255,0,0));
	var_ConditionalFormat1->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x2));
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutDrawGridLines(EXLISTLib::GridLinesEnum(0xfffffffc | EXLISTLib::exVLines));
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2");
	var_Columns->Add(L"Column 3");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(vtMissing);
	var_Items->Add(vtMissing);
	var_Items->Add(vtMissing);
spList1->EndUpdate();

394:
How can I get the list of items as they are displayed

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutBackColorAlternate(RGB(240,240,240));
spList1->GetColumns()->Add(L"Names");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Mantel");
	var_Items->Add("Mechanik");
	var_Items->Add("Motor");
	var_Items->Add("Murks");
	var_Items->Add("Märchen");
	var_Items->Add("Möhren");
	var_Items->Add("Mühle");
spList1->GetColumns()->GetItem(long(0))->PutSortOrder(EXLISTLib::SortAscending);
spList1->EndUpdate();
OutputDebugStringW( _bstr_t(spList1->GetItems(long(1))) );

393:
Is posible to reduce the size of the picture to be shown in the column's caption

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif");
spList1->PutHeaderHeight(48);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"DefaultSize")))->PutHTMLCaption(L"Default-Size <img>pic1</img> Picture");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"CustomSize")))->PutHTMLCaption(L"Custom-Size <img>pic1:16</img> Picture");
spList1->EndUpdate();

392:
How can I change the color, font, bold etc for the items/cells in the same column or for the entire column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing);
	var_ConditionalFormat->PutBold(VARIANT_TRUE);
	var_ConditionalFormat->PutForeColor(RGB(255,0,0));
	var_ConditionalFormat->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x1));
spList1->GetColumns()->Add(L"C1");
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")));
	var_Column->PutHeaderBold(VARIANT_TRUE);
	var_Column->PutHTMLCaption(L"<fgcolor=FF0000>C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaption(var_Items->Add(long(10)),long(1),long(11));
	var_Items->PutCaption(var_Items->Add(long(12)),long(1),long(13));
spList1->EndUpdate();

391:
Is it possible to limit the height of item while resizing the row

// AddItem event - Occurs after a new Item is inserted to Items collection.
void OnAddItemList1(long Item)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
		#import <ExList.dll>
		using namespace EXLISTLib;
	*/
	EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
	spList1->GetItems()->PutItemMinHeight(Item,18);
	spList1->GetItems()->PutItemMaxHeight(Item,72);
}

EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutItemsAllowSizing(EXLISTLib::exResizeItem);
spList1->PutScrollBySingleLine(VARIANT_FALSE);
spList1->PutBackColorAlternate(RGB(240,240,240));
spList1->GetColumns()->Add(L"Names");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Mantel");
	var_Items->Add("Mechanik");
	var_Items->Add("Motor");
	var_Items->Add("Murks");
	var_Items->Add("Märchen");
	var_Items->Add("Möhren");
	var_Items->Add("Mühle");
spList1->GetColumns()->GetItem(long(0))->PutSortOrder(EXLISTLib::SortAscending);
spList1->EndUpdate();

390:
Can I specify un-sortable items so they keep their position once the user sorts the columns

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Def")))->PutSortType(EXLISTLib::SortNumeric);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutSortableItem(var_Items->Add("Unsortable"),VARIANT_FALSE);
	var_Items->Add(long(1));
	var_Items->Add(long(2));
	var_Items->Add(long(3));

389:
The item is not getting selected when clicking the cell's checkbox. What should I do

// CellStateChanged event - Fired after cell's state is changed.
void OnCellStateChangedList1(long ItemIndex,long ColIndex)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
		#import <ExList.dll>
		using namespace EXLISTLib;
	*/
	EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
	spList1->GetItems()->PutSelectItem(ItemIndex,VARIANT_TRUE);
}

EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Check")))->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE);
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(long(0));
	var_Items->Add(long(1));
	var_Items->Add(long(2));
	var_Items->Add(long(3));

388:
Does your control supports multiple lines tooltip

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif");
spList1->PutToolTipDelay(1);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(_bstr_t("<br><font Tahoma;10>This</font> is a <b>multi-lines</b> tooltip assigned to a column. The tooltip supports built-in HTML tags, ") +
"icons and pictures.<br><br><br><img>pic1</img> picture ... <br><br>");

387:
How can I prevent highlighting the column from the cursor - point

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BI0IQAAYAQGKIYBkAKBQAGaAoDDUOQzQwAAxDKKUEwsACEIrjKCYVgOHYYRrIMYgBCMJhLEoaZLhEZRQiqDYtRDFQBSDDcPw/EaRZohGaYJ") +
"gEgI=");
spList1->PutBackground(EXLISTLib::exCursorHoverColumn,0x1000000);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(32);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1));
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1));
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1));
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E1")))->PutWidth(32);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E2")))->PutWidth(32);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E3")))->PutWidth(32);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E4")))->PutWidth(32);

386:
Is there any option to show the tooltip programmatically

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveList1(short Button,short Shift,long X,long Y)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'
		#import <ExList.dll>
		using namespace EXLISTLib;
	*/
	EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
	spList1->ShowToolTip(_bstr_t(spList1->GetItemFromPoint(-1,-1,c,hit)),"","8","8",vtMissing);
}

EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->GetColumns()->Add(L"Def");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
spList1->EndUpdate();

385:
Is it possible to prevent covering the colors by selected rows

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutSelBackMode(EXLISTLib::exTransparent);
spList1->PutBackColorAlternate(RGB(240,240,240));
spList1->GetColumns()->Add(L"Column");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->Add("Item 4");
	var_Items->Add("Item 5");

384:
Can I use PNG images to display pictures in the control

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\card.png");
spList1->PutHeaderHeight(48);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"ColumnName")))->PutHTMLCaption(L"<b>HTML</b> Column <img>pic1</img> Picture");

383:
Does your control support conditional format and computed fields

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
EXLISTLib::IConditionalFormatsPtr var_ConditionalFormats = spList1->GetConditionalFormats();
	EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = var_ConditionalFormats->Add(L"%1 >4",vtMissing);
		var_ConditionalFormat->PutBold(VARIANT_TRUE);
		var_ConditionalFormat->PutStrikeOut(VARIANT_TRUE);
		var_ConditionalFormat->PutForeColor(RGB(255,0,0));
		var_ConditionalFormat->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x1));
	EXLISTLib::IConditionalFormatPtr var_ConditionalFormat1 = var_ConditionalFormats->Add(L"%2 > 4",vtMissing);
		var_ConditionalFormat1->PutBold(VARIANT_TRUE);
		var_ConditionalFormat1->PutStrikeOut(VARIANT_TRUE);
		var_ConditionalFormat1->PutForeColor(RGB(255,0,0));
		var_ConditionalFormat1->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x2));
	EXLISTLib::IConditionalFormatPtr var_ConditionalFormat2 = var_ConditionalFormats->Add(L"%3 > 4",vtMissing);
		var_ConditionalFormat2->PutBold(VARIANT_TRUE);
		var_ConditionalFormat2->PutStrikeOut(VARIANT_TRUE);
		var_ConditionalFormat2->PutForeColor(RGB(255,0,0));
		var_ConditionalFormat2->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x3));
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Name");
	EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"A")));
		var_Column->PutSortType(EXLISTLib::SortNumeric);
		var_Column->PutAllowSizing(VARIANT_FALSE);
		var_Column->PutWidth(36);
		var_Column->PutFormatColumn(L"len(value) ? value + ' +'");
	EXLISTLib::IColumnPtr var_Column1 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"B")));
		var_Column1->PutSortType(EXLISTLib::SortNumeric);
		var_Column1->PutAllowSizing(VARIANT_FALSE);
		var_Column1->PutWidth(36);
		var_Column1->PutFormatColumn(L"len(value) ? value + ' +'");
	EXLISTLib::IColumnPtr var_Column2 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"C")));
		var_Column2->PutSortType(EXLISTLib::SortNumeric);
		var_Column2->PutAllowSizing(VARIANT_FALSE);
		var_Column2->PutWidth(36);
		var_Column2->PutFormatColumn(L"len(value) ? value + ' ='");
	EXLISTLib::IColumnPtr var_Column3 = ((EXLISTLib::IColumnPtr)(var_Columns->Add(L"A+B+C")));
		var_Column3->PutSortType(EXLISTLib::SortNumeric);
		var_Column3->PutAllowSizing(VARIANT_FALSE);
		var_Column3->PutWidth(64);
		var_Column3->PutComputedField(L"%1+%2+%3");
		var_Column3->PutFormatColumn(L"((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)");
		var_Column3->PutDef(EXLISTLib::exCaptionFormat,long(1));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h1 = var_Items->Add("Item 1");
	var_Items->PutCaption(h1,long(1),long(7));
	var_Items->PutCaption(h1,long(2),long(3));
	var_Items->PutCaption(h1,long(3),long(1));
	h1 = var_Items->Add("Item 2");
	var_Items->PutCaption(h1,long(1),long(2));
	var_Items->PutCaption(h1,long(2),long(5));
	var_Items->PutCaption(h1,long(3),long(12));
	h1 = var_Items->Add("Item 3");
	var_Items->PutCaption(h1,long(1),long(2));
	var_Items->PutCaption(h1,long(2),long(2));
	var_Items->PutCaption(h1,long(3),long(4));
	h1 = var_Items->Add("Item 4");
	var_Items->PutCaption(h1,long(1),long(2));
	var_Items->PutCaption(h1,long(2),long(9));
	var_Items->PutCaption(h1,long(3),long(4));
spList1->EndUpdate();

382:
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutScrollBars(EXLISTLib::DisableBoth);
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"C1");
	var_Columns->Add(L"C2");
	var_Columns->Add(L"C3");
	var_Columns->Add(L"C4");
	var_Columns->Add(L"C5");
	var_Columns->Add(L"C6");
	var_Columns->Add(L"C7");
	var_Columns->Add(L"C8");
spList1->PutRightToLeft(VARIANT_TRUE);
spList1->EndUpdate();

381:
Can I display the cell's check box after the text

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")));
	var_Column->PutDef(EXLISTLib::exCellHasCheckBox,VARIANT_TRUE);
	var_Column->PutDef(EXLISTLib::exCellDrawPartsOrder,"caption,check");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCellHasCheckBox(var_Items->Add("Caption 1"),long(0),VARIANT_TRUE);
	var_Items->PutCellHasCheckBox(var_Items->Add("Caption 2"),long(0),VARIANT_TRUE);

380:
Can I change the order of the parts in the cell, as checkbox after the text, and so on

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")))->PutDef(EXLISTLib::exCellDrawPartsOrder,"caption,check,icon,icons,picture");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Text");
	var_Items->PutCellImage(h,long(0),1);
	var_Items->PutCellHasCheckBox(h,long(0),VARIANT_TRUE);

379:
Can I have an image displayed after the text. Can I get that effect without using HTML content

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")))->PutDef(EXLISTLib::exCellDrawPartsOrder,"caption,icon,check,icons,picture");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Text");
	var_Items->PutCellImage(h,long(0),1);

378:
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutScrollBars(EXLISTLib::DisableBoth);
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"C1");
	var_Columns->Add(L"C2");
	var_Columns->Add(L"C3");
	var_Columns->Add(L"C4");
	var_Columns->Add(L"C5");
	var_Columns->Add(L"C6");
	var_Columns->Add(L"C7");
	var_Columns->Add(L"C8");
spList1->PutRightToLeft(VARIANT_TRUE);
spList1->EndUpdate();

377:
How can I change the foreground color for a particular column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Column 1");
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXLISTLib::exHeaderForeColor,long(8439039));
	var_Columns->Add(L"Column 3");

376:
How can I change the background color for a particular column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Column 1");
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXLISTLib::exHeaderBackColor,long(8439039));
	var_Columns->Add(L"Column 3");

375:
How can I display the column using currency format and enlarge the font for certain values

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency")));
	var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1));
	var_Column->PutFormatColumn(L"len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("1.23");
	var_Items->Add("2.34");
	var_Items->Add("9.94");
	var_Items->Add("11.94");
	var_Items->Add("1000");

374:
How can I highlight only parts of the cells

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"")));
	var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1));
	var_Column->PutFormatColumn(L"value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	var_Items->Add("Child 3");

373:
How can I get the number of occurrences of a specified string in the cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"");
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"occurrences")));
	var_Column->PutComputedField(L"lower(%0) count 'o'");
	var_Column->PutFormatColumn(L"'contains ' + value + ' of \\'o\\' chars'");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root");
	var_Items->Add("Child 1 oooof the root");
	var_Items->Add("Child 2");
	var_Items->Add("Child 3");

372:
How can I display dates in my format

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date")));
	var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1));
	var_Column->PutFormatColumn(L"'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0) +')'");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,21,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,22,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,13,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,24,0,00,00).operator DATE());

371:
How can I display dates in short format

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date")))->PutFormatColumn(L"shortdate(value)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,2,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,3,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,4,0,00,00).operator DATE());

370:
How can I display dates in long format

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date")))->PutFormatColumn(L"longdate(value)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,2,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,3,0,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,4,0,00,00).operator DATE());

369:
How can I display only the right part of the cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"");
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Right")));
	var_Column->PutComputedField(L"%0 right 2");
	var_Column->PutFormatColumn(L"'\"' + value + '\"'");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	var_Items->Add("SChild 3");

368:
How can I display only the left part of the cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Left")))->PutComputedField(L"%0 left 2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Root");
	var_Items->Add("Child 1");
	var_Items->Add("Child 2");
	var_Items->Add("SChild 3");

367:
How can I display true or false instead 0 and -1

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Boolean")))->PutFormatColumn(L"value != 0 ? 'true' : 'false'");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(VARIANT_TRUE);
	var_Items->Add(VARIANT_FALSE);
	var_Items->Add(VARIANT_TRUE);
	var_Items->Add(long(0));
	var_Items->Add(long(1));

366:
How can I display icons or images instead numbers

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Icons")));
	var_Column->PutDef(EXLISTLib::exCaptionFormat,long(1));
	var_Column->PutFormatColumn(L"'The cell displays the icon <img>'+value+'</img> instead ' + value");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(long(1));
	var_Items->Add(long(2));
	var_Items->Add(long(3));

365:
How can I display the column using currency

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency")))->PutFormatColumn(L"currency(dbl(value))");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("1.23");
	var_Items->Add("2.34");
	var_Items->Add("0");
	var_Items->Add(long(5));
	var_Items->Add("10000.99");

364:
Is is possible to use HTML tags to display in the filter caption

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarCaption(L"This is a bit of text being displayed in the filter bar.");
spList1->GetColumns()->Add(L"");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
spList1->EndUpdate();

363:
How can I find the number of items after filtering
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->GetColumns()->Add(L"");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("");
	var_Items->PutCaption(h,long(0),var_Items->GetVisibleItemCount());
spList1->EndUpdate();

362:
How can I change the filter caption

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::FilterPromptEnum(EXLISTLib::exFilterPromptWords | EXLISTLib::exFilterPromptContainsAll));
spList1->PutFilterBarPromptPattern(L"london robert");
spList1->PutFilterBarCaption(L"<r>Found: ... ");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

361:
While using the filter prompt is it is possible to use wild characters

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptPattern);
spList1->PutFilterBarPromptPattern(L"lon* seat*");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

360:
How can I list all items that contains any of specified words, not necessary at the beggining

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::FilterPromptEnum(EXLISTLib::exFilterPromptStartWords | EXLISTLib::exFilterPromptContainsAny));
spList1->PutFilterBarPromptPattern(L"london davolio");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

359:
How can I list all items that contains any of specified words, not strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::FilterPromptEnum(EXLISTLib::exFilterPromptWords | EXLISTLib::exFilterPromptContainsAny));
spList1->PutFilterBarPromptPattern(L"london nancy");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

358:
How can I list all items that contains all specified words, not strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::FilterPromptEnum(EXLISTLib::exFilterPromptWords | EXLISTLib::exFilterPromptContainsAll));
spList1->PutFilterBarPromptPattern(L"london robert");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

357:
I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::FilterPromptEnum(EXLISTLib::exFilterPromptCaseSensitive | EXLISTLib::exFilterPromptContainsAny));
spList1->PutFilterBarPromptPattern(L"Anne");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

356:
Is it possible to list only items that ends with any of specified strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptEndWith);
spList1->PutFilterBarPromptColumns("0");
spList1->PutFilterBarPromptPattern(L"Fuller");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

355:
Is it possible to list only items that ends with any of specified strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptEndWith);
spList1->PutFilterBarPromptColumns("0");
spList1->PutFilterBarPromptPattern(L"Fuller");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

354:
Is it possible to list only items that starts with any of specified strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptStartWith);
spList1->PutFilterBarPromptColumns("0");
spList1->PutFilterBarPromptPattern(L"An M");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

353:
Is it possible to list only items that starts with specified string

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptStartWith);
spList1->PutFilterBarPromptColumns("0");
spList1->PutFilterBarPromptPattern(L"A");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

352:
How can I specify that the list should include any of the seqeunces in the pattern

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptContainsAny);
spList1->PutFilterBarPromptPattern(L"london seattle");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

351:
How can I specify that all sequences in the filter pattern must be included in the list

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptType(EXLISTLib::exFilterPromptContainsAll);
spList1->PutFilterBarPromptPattern(L"london manager");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

350:
How do I change at runtime the filter prompt

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptPattern(L"london manager");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

349:
How do I specify to filter only a single column when using the filter prompt

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPromptColumns("2,3");
spList1->PutFilterBarPromptPattern(L"london");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

348:
How do I change the prompt or the caption being displayed in the filter bar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
spList1->PutFilterBarPrompt(L"changed");
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
spList1->EndUpdate();

347:
How do I enable the filter prompt feature

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutColumnAutoResize(VARIANT_TRUE);
spList1->PutContinueColumnScroll(VARIANT_FALSE);
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSearchColumnIndex(1);
spList1->PutFilterBarPromptVisible(VARIANT_TRUE);
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h0 = var_Items->Add("Nancy Davolio");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Andrew Fuller");
	var_Items->PutCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->Add("Janet Leverling");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Kirkland");
	h0 = var_Items->Add("Margaret Peacock");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"Redmond");
	h0 = var_Items->Add("Steven Buchanan");
	var_Items->PutCaption(h0,long(1),"Sales Manager");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Michael Suyama");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Robert King");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
	h0 = var_Items->Add("Laura Callahan");
	var_Items->PutCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCaption(h0,long(2),"Seattle");
	h0 = var_Items->Add("Anne Dodsworth");
	var_Items->PutCaption(h0,long(1),"Sales Representative");
	var_Items->PutCaption(h0,long(2),"London");
spList1->EndUpdate();

346:
Is it possible to change the style for the vertical or horizontal grid lines, in the list area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutDrawGridLines(EXLISTLib::exAllLines);
spList1->PutGridLineStyle(EXLISTLib::GridLinesStyleEnum(EXLISTLib::exGridLinesVSolid | EXLISTLib::exGridLinesHDot4));
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
spList1->GetColumns()->Add(L"C3");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->PutCaption(h,long(1),"SubItem 1.2");
	var_Items->PutCaption(h,long(2),"SubItem 1.3");
	h = var_Items->Add("Item 2");
	var_Items->PutCaption(h,long(1),"SubItem 2.2");
	var_Items->PutCaption(h,long(2),"SubItem 2.3");
spList1->EndUpdate();

345:
Is it possible to change the style for the grid lines, for instance to be solid not dotted

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutDrawGridLines(EXLISTLib::exAllLines);
spList1->PutGridLineStyle(EXLISTLib::exGridLinesSolid);
spList1->GetColumns()->Add(L"Column");
spList1->EndUpdate();

344:
How can I filter programatically using more columns

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Car");
	var_Columns->Add(L"Equipment");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"Air Bag");
	var_Items->PutCaption(var_Items->Add("Toyota"),long(1),"Air Bag,Air condition");
	var_Items->PutCaption(var_Items->Add("Ford"),long(1),"Air condition");
	var_Items->PutCaption(var_Items->Add("Nissan"),long(1),"Air Bag,ABS,ESP");
	var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"Air Bag, ABS,ESP");
	var_Items->PutCaption(var_Items->Add("Mazda"),long(1),"ABS,ESP");
EXLISTLib::IColumnPtr var_Column = spList1->GetColumns()->GetItem("Car");
	var_Column->PutFilterType(EXLISTLib::exFilter);
	var_Column->PutFilter(L"Mazda");
EXLISTLib::IColumnPtr var_Column1 = spList1->GetColumns()->GetItem("Equipment");
	var_Column1->PutFilterType(EXLISTLib::exPattern);
	var_Column1->PutFilter(L"*ABS*|*ESP*");
spList1->ApplyFilter();
spList1->EndUpdate();

343:
How do I find an item based on my extra data

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->PutItemData(var_Items->Add("Item 3"),long(1234));
	var_Items->Add("Item 4");
	var_Items->PutItemBold(var_Items->GetFindItemData(long(1234),vtMissing),VARIANT_TRUE);

342:
How do I print the control's content

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->BeginUpdate();
spList1->GetColumns()->Add(L"Number");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency")))->PutComputedField(L"len(%0) ? currency(dbl(%0)) : ''");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("1.23");
	var_Items->Add("2.34");
	var_Items->Add("0");
	var_Items->PutItemBackColor(var_Items->Add(vtMissing),RGB(255,128,128));
	var_Items->Add("10000.99");
spList1->EndUpdate();
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXPRINTLib' for the library: 'ExPrint 1.0 Control Library'

	#import <ExPrint.dll>
	using namespace EXPRINTLib;
*/
EXPRINTLib::IExPrintPtr var_Print = ::CreateObject(L"Exontrol.Print");
	var_Print->PutPrintExt(((EXLISTLib::IListPtr)(spList1)));
	var_Print->Preview();

341:
How can I display the currency only for not empty cells
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Number");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency")))->PutComputedField(L"len(%0) ? currency(dbl(%0)) : ''");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("1.23");
	var_Items->Add("2.34");
	var_Items->Add("0");
	var_Items->PutItemBackColor(var_Items->Add(vtMissing),RGB(255,128,128));
	var_Items->Add("10000.99");

340:
Is there a function to display the number of days between two date including the number of hours

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Start")))->PutWidth(32);
spList1->GetColumns()->Add(L"End");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Duration")))->PutComputedField(_bstr_t("2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '' : str(=:1) + ' day(s)') + ( 3:=round(24*(=:0-floor(=:0))) ? (len(=:2) ? ' and ' : ") +
"'') + =:3 + ' hour(s)' : '' )");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add(COleDateTime(2001,1,11,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(1),COleDateTime(2001,1,14,0,00,00).operator DATE());
	h = var_Items->Add(COleDateTime(2002,2,22,12,00,00).operator DATE());
	var_Items->PutCaption(h,long(1),COleDateTime(2002,3,14,13,00,00).operator DATE());
	h = var_Items->Add(COleDateTime(2003,3,13,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(1),COleDateTime(2003,4,11,11,00,00).operator DATE());

339:
Is there a function to display the number of days between two date including the number of hours

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Start");
spList1->GetColumns()->Add(L"End");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Duration")))->PutComputedField(L"\"D \" + int(date(%1)-date(%0)) + \" H \" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add(COleDateTime(2001,1,11,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(1),COleDateTime(2001,1,14,23,00,00).operator DATE());
	h = var_Items->Add(COleDateTime(2002,2,22,12,00,00).operator DATE());
	var_Items->PutCaption(h,long(1),COleDateTime(2002,3,14,13,00,00).operator DATE());
	h = var_Items->Add(COleDateTime(2003,3,13,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(1),COleDateTime(2003,4,11,11,00,00).operator DATE());

338:
How can I display the number of days between two dates

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Start");
spList1->GetColumns()->Add(L"End");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Duration")))->PutComputedField(L"(date(%1)-date(%0)) + ' days'");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add(COleDateTime(2001,1,11,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(1),COleDateTime(2001,1,14,0,00,00).operator DATE());
	h = var_Items->Add(COleDateTime(2002,2,22,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(1),COleDateTime(2002,3,14,0,00,00).operator DATE());
	h = var_Items->Add(COleDateTime(2003,3,13,0,00,00).operator DATE());
	var_Items->PutCaption(h,long(1),COleDateTime(2003,4,11,0,00,00).operator DATE());

337:
How can I get second part of the date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Date");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Second")))->PutComputedField(L"sec(date(%0))");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,11,10,10,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,22,11,01,22).operator DATE());
	var_Items->Add(COleDateTime(2003,3,13,12,23,01).operator DATE());
	var_Items->Add(COleDateTime(2004,4,14,13,11,59).operator DATE());

336:
How can I get minute part of the date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Date");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Minute")))->PutComputedField(L"min(date(%0))");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,11,10,10,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,22,11,01,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,13,12,23,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,14,13,11,00).operator DATE());

335:
How can I check the hour part only so I know it was afternoon

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetConditionalFormats()->Add(L"hour(%0)>=12",vtMissing)->PutBold(VARIANT_TRUE);
spList1->GetColumns()->Add(L"Date");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Hour")))->PutComputedField(L"hour(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,11,10,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,22,11,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,13,12,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,14,13,00,00).operator DATE());

334:
What about a function to get the day in the week, or days since Sunday

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Date");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"WeekDay")))->PutComputedField(L"weekday(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,11,10,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,22,11,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,13,12,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,14,13,00,00).operator DATE());

333:
Is there any function to get the day of the year or number of days since January 1st

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Date");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Day since January 1st")))->PutComputedField(L"yearday(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,11,10,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,22,11,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,13,12,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,14,13,00,00).operator DATE());

332:
How can I display only the day of the date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Date");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Day")))->PutComputedField(L"day(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,11,10,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,22,11,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,13,12,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,14,13,00,00).operator DATE());

331:
How can I display only the month of the date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Date");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Month")))->PutComputedField(L"month(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,2,11,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,3,12,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,4,13,00,00).operator DATE());

330:
How can I get only the year part from a date expression

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Date");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Year")))->PutComputedField(L"year(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,2,11,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,3,12,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,4,13,00,00).operator DATE());

329:
Can I convert the expression to date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Number");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Date")))->PutComputedField(L"date(dbl(%0))");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("-1.98");
	var_Items->Add("30000.99");
	var_Items->Add("3561.23");
	var_Items->Add("1232.34");

328:
Can I convert the expression to a number, double or float

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Number");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Number + 2")))->PutComputedField(L"dbl(%0)+2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("-1.98");
	var_Items->Add("0.99");
	var_Items->Add("1.23");
	var_Items->Add("2.34");

327:
How can I display dates in long format

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Date");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"LongFormat")))->PutComputedField(L"longdate(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,2,11,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,3,12,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,4,13,00,00).operator DATE());

326:
How can I display dates in short format

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Date");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"ShortFormat")))->PutComputedField(L"shortdate(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,2,11,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,3,12,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,4,13,00,00).operator DATE());

325:
How can I display the time only of a date expression

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Date");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Time")))->PutComputedField(L"'time is:' + time(date(%0))");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Items->Add(COleDateTime(2002,2,2,11,00,00).operator DATE());
	var_Items->Add(COleDateTime(2003,3,3,12,00,00).operator DATE());
	var_Items->Add(COleDateTime(2004,4,4,13,00,00).operator DATE());

324:
Is there any function to display currencies, or money formatted as in the control panel

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Number");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Currency")))->PutComputedField(L"currency(dbl(%0))");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("1.23");
	var_Items->Add("2.34");
	var_Items->Add("10000.99");

323:
How can I convert the expression to a string so I can look into the date string expression for month's name

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Number");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Str")))->PutComputedField(L"str(%0) + ' AA'");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("-1.98");
	var_Items->Add("0.99");
	var_Items->Add("1.23");
	var_Items->Add("2.34");

322:
Can I display the absolute value or positive part of the number

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Number");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Abs")))->PutComputedField(L"abs(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("-1.98");
	var_Items->Add("0.99");
	var_Items->Add("1.23");
	var_Items->Add("2.34");

321:
Is there any function to get largest number with no fraction part that is not greater than the value

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Number");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Floor")))->PutComputedField(L"floor(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("-1.98");
	var_Items->Add("0.99");
	var_Items->Add("1.23");
	var_Items->Add("2.34");

320:
Is there any function to round the values base on the .5 value

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Number");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Round")))->PutComputedField(L"round(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("-1.98");
	var_Items->Add("0.99");
	var_Items->Add("1.23");
	var_Items->Add("2.34");

319:
How can I get or display the integer part of the cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Number");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Int")))->PutComputedField(L"int(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("-1.98");
	var_Items->Add("0.99");
	var_Items->Add("1.23");
	var_Items->Add("2.34");

318:
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"")))->PutComputedField(L"proper(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->Add("item item");
	var_Items->Add("item item");
	var_Items->Add("item item");

317:
Is there any option to display cells in uppercase

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"")))->PutComputedField(L"upper(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->Add("Item 4 - child");

316:
Is there any option to display cells in lowercase

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"")))->PutComputedField(L"lower(%0)");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->Add("Item 4 - child");

315:
How can I mark the cells that has a specified type, ie strings only

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetConditionalFormats()->Add(L"type(%0) = 8",vtMissing)->PutForeColor(RGB(255,0,0));
spList1->GetColumns()->Add(L"");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add(long(2));
	var_Items->Add("Item 4 - child");

314:
How can I bold the items that contains data or those who displays empty strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetConditionalFormats()->Add(L"not len(%1)=0",vtMissing)->PutBold(VARIANT_TRUE);
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	long hC = var_Items->Add("Item 3");
	var_Items->PutCaption(hC,long(1),"1");
	var_Items->Add("Item 3");

313:
Can I change the background color for items or cells that contains a specified string

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetConditionalFormats()->Add(L"%0 contains 'hi'",vtMissing)->PutBackColor(RGB(255,0,0));
spList1->GetColumns()->Add(L"");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->Add("Item 4 - child");

312:
Is there any option to change the fore color for cells or items that ends with a specified string

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetConditionalFormats()->Add(L"%0 endwith '22'",vtMissing)->PutForeColor(RGB(255,0,0));
spList1->GetColumns()->Add(L"");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 1.22");
	var_Items->Add("Item 2.22");

311:
How can I highlight the cells or items that starts with a specified string

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetConditionalFormats()->Add(L"%0 startwith 'C'",vtMissing)->PutUnderline(VARIANT_TRUE);
spList1->GetColumns()->Add(L"");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("CItem 2");
	var_Items->Add("Item 3");
	var_Items->Add("Item 4");

310:
How can I change the foreground color for a particular column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Column 1");
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXLISTLib::exHeaderForeColor,long(8439039));
	var_Columns->Add(L"Column 3");

309:
How can I change the background color for a particular column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnsPtr var_Columns = spList1->GetColumns();
	var_Columns->Add(L"Column 1");
	((EXLISTLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXLISTLib::exHeaderBackColor,long(8439039));
	var_Columns->Add(L"Column 3");

308:
How can I display the column's header using multiple lines

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutHeaderHeight(128);
spList1->PutHeaderSingleLine(VARIANT_FALSE);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"This is just a column that should break the header.")))->PutWidth(32);
spList1->GetColumns()->Add(L"This is just another column that should break the header.");

307:
How can I align the text/caption on the scroll bar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutScrollPartCaption(EXLISTLib::exHScroll,EXLISTLib::exLowerBackPart,L"left");
spList1->PutScrollPartCaptionAlignment(EXLISTLib::exHScroll,EXLISTLib::exLowerBackPart,EXLISTLib::LeftAlignment);
spList1->PutScrollPartCaption(EXLISTLib::exHScroll,EXLISTLib::exUpperBackPart,L"right");
spList1->PutScrollPartCaptionAlignment(EXLISTLib::exHScroll,EXLISTLib::exUpperBackPart,EXLISTLib::RightAlignment);
spList1->PutColumnAutoResize(VARIANT_FALSE);
spList1->GetColumns()->Add(L"1");
spList1->GetColumns()->Add(L"2");
spList1->GetColumns()->Add(L"3");
spList1->GetColumns()->Add(L"4");
spList1->GetColumns()->Add(L"5");
spList1->GetColumns()->Add(L"6");

306:
How do I select the next row/item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Column");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->PutSelectItem(var_Items->GetNextVisibleItem(var_Items->GetFocusItem()),VARIANT_TRUE);

305:
How do I enable resizing ( changing the height ) the items at runtime

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutItemsAllowSizing(EXLISTLib::exResizeItem);
spList1->PutDrawGridLines(EXLISTLib::exHLines);
spList1->PutScrollBySingleLine(VARIANT_TRUE);
spList1->GetColumns()->Add(L"Column");
spList1->GetItems()->Add("Item 1");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemHeight(var_Items->Add("Item 2"),48);
spList1->GetItems()->Add("Item 3");
spList1->GetItems()->Add("Item 4");

304:
How do I enable resizing all the items at runtime

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutItemsAllowSizing(EXLISTLib::exResizeAllItems);
spList1->PutDrawGridLines(EXLISTLib::exHLines);
spList1->GetColumns()->Add(L"Column");
spList1->GetItems()->Add("Item 1");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemHeight(var_Items->Add("Item 2"),48);
spList1->GetItems()->Add("Item 3");

303:
How can I remove the filter

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXLISTLib::exBlanks);
spList1->ApplyFilter();
spList1->ClearFilter();

302:
How do I change the control's border, using your EBN files

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spList1->PutAppearance(EXLISTLib::AppearanceEnum(0x1000000));

301:
Can I change the style for break or divider line

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	long h = var_Items->Add(vtMissing);
	var_Items->PutItemBreak(h,EXLISTLib::DoubleLine);
	var_Items->PutSelectableItem(h,VARIANT_FALSE);
	var_Items->Add("Item 3");

300:
Can I add any break or divider line

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutScrollBySingleLine(VARIANT_FALSE);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	long h = var_Items->Add(vtMissing);
	var_Items->PutItemBreak(h,EXLISTLib::SingleLine);
	var_Items->PutSelectableItem(h,VARIANT_FALSE);
	var_Items->PutItemHeight(h,6);
	var_Items->Add("Item 3");

299:
Can I change the default border of the tooltip, using your EBN files

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutToolTipDelay(1);
spList1->PutToolTipWidth(364);
spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spList1->PutBackground(EXLISTLib::exToolTipAppearance,0x1000000);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");

298:
Can I change the background color for the tooltip

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutToolTipDelay(1);
spList1->PutToolTipWidth(364);
spList1->PutBackground(EXLISTLib::exToolTipBackColor,RGB(255,0,0));
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");

297:
Does the tooltip support HTML format

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutToolTipDelay(1);
spList1->PutToolTipWidth(364);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgcolor>");

296:
Can I change the forecolor for the tooltip

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutToolTipDelay(1);
spList1->PutToolTipWidth(364);
spList1->PutBackground(EXLISTLib::exToolTipForeColor,RGB(255,0,0));
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column");

295:
Can I change the foreground color for the tooltip

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutToolTipDelay(1);
spList1->PutToolTipWidth(364);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"tootip")))->PutToolTip(L"<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>");

294:
Is there any function to limit the height of the items when I display it using multiple lines

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutScrollBySingleLine(VARIANT_TRUE);
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
	var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
	var_Items->PutItemMaxHeight(h,48);

293:
Why I cannot center my cells in the column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutDrawGridLines(EXLISTLib::exAllLines);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Default")))->PutAlignment(EXLISTLib::CenterAlignment);
spList1->GetItems()->Add("item 1");
spList1->GetItems()->Add("item 2");
spList1->GetItems()->Add("item 3");

292:
How can I align the cell to the left, center or to the right

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutDrawGridLines(EXLISTLib::exAllLines);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCellHAlignment(var_Items->Add("left"),long(0),EXLISTLib::LeftAlignment);
	var_Items->PutCellHAlignment(var_Items->Add("center"),long(0),EXLISTLib::CenterAlignment);
	var_Items->PutCellHAlignment(var_Items->Add("right"),long(0),EXLISTLib::RightAlignment);

291:
How do I apply HTML format to a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spList1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif");
spList1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif");
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("The following item shows some of the HTML format supported:");
	var_Items->PutCellHAlignment(h,long(0),EXLISTLib::CenterAlignment);
	h = var_Items->Add(_bstr_t("<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <") +
"u>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolo" +
"r</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> ");
	var_Items->PutCaptionFormat(h,long(0),EXLISTLib::exHTML);
	var_Items->PutCellSingleLine(h,long(0),VARIANT_FALSE);

290:
How can I change the font for a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
spList1->GetItems()->Add("std font");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaptionFormat(var_Items->Add("this <font tahoma;12>is a bit of text with</font> a different font"),long(0),EXLISTLib::exHTML);

289:
How can I change the font for a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
spList1->GetItems()->Add("default font");
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'stdole' for the library: 'OLE Automation'

	#import <stdole2.tlb>
*/
stdole::FontPtr f = ::CreateObject(L"StdFont");
	f->PutName(L"Tahoma");
	f->PutSize(_variant_t(long(12)));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCellFont(var_Items->Add("new font"),long(0),IFontDispPtr(((stdole::FontPtr)(f))));

288:
How can I change the font for entire item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
spList1->GetItems()->Add("default font");
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'stdole' for the library: 'OLE Automation'

	#import <stdole2.tlb>
*/
stdole::FontPtr f = ::CreateObject(L"StdFont");
	f->PutName(L"Tahoma");
	f->PutSize(_variant_t(long(12)));
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemFont(var_Items->Add("new font"),IFontDispPtr(((stdole::FontPtr)(f))));

287:
How do I vertically align a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutDrawGridLines(EXLISTLib::exAllLines);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"MultipleLine")))->PutDef(EXLISTLib::exCellSingleLine,VARIANT_FALSE);
spList1->GetColumns()->Add(L"VAlign");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("This is a bit of long text that should break the line");
	var_Items->PutCaption(h,long(1),"top");
	var_Items->PutCellVAlignment(h,long(1),EXLISTLib::TopAlignment);
	h = var_Items->Add("This is a bit of long text that should break the line");
	var_Items->PutCaption(h,long(1),"middle");
	var_Items->PutCellVAlignment(h,long(1),EXLISTLib::MiddleAlignment);
	h = var_Items->Add("This is a bit of long text that should break the line");
	var_Items->PutCaption(h,long(1),"bottom");
	var_Items->PutCellVAlignment(h,long(1),EXLISTLib::BottomAlignment);

286:
How can I change the position of an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->PutItemPosition(var_Items->Add("Item 3"),0);

285:
How do I find an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->PutItemBold(var_Items->GetFindItem("Item 2",long(0),vtMissing),VARIANT_TRUE);

284:
How can I insert a hyperlink or an anchor element

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Column");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaptionFormat(var_Items->Add("Just an <a1>anchor</a> element ..."),long(0),EXLISTLib::exHTML);
EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems();
	var_Items1->PutCaptionFormat(var_Items1->Add("Just another <a2>anchor</a> element ..."),long(0),EXLISTLib::exHTML);

283:
How do I find the handle of the item based on its index

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->PutItemBold(1,VARIANT_TRUE);

282:
How can I find the cell being clicked in a radio group

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSelBackColor(RGB(255,255,128));
spList1->PutSelForeColor(RGB(0,0,0));
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
spList1->GetColumns()->Add(L"C3");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"Radio 1");
	var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE);
	var_Items->PutCellRadioGroup(h,long(1),1234);
	var_Items->PutCaption(h,long(2),"Radio 2");
	var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE);
	var_Items->PutCellRadioGroup(h,long(2),1234);
	var_Items->PutCellState(h,long(1),1);
	var_Items->CellChecked(1234,i,c);
	var_Items->PutCellBold(i,c,VARIANT_TRUE);

281:
Can I let the user to resize at runtime the specified item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutScrollBySingleLine(VARIANT_TRUE);
spList1->PutDrawGridLines(EXLISTLib::exAllLines);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemAllowSizing(var_Items->Add("resizable item"),VARIANT_TRUE);
	var_Items->Add("not resizable item");

280:
How can I change the size ( width, height ) of the picture

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->PutCellPicture(h,long(0),((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))));
	var_Items->PutCellPictureWidth(h,long(0),24);
	var_Items->PutCellPictureHeight(h,long(0),24);
	var_Items->PutItemHeight(h,32);
	h = var_Items->Add("Item 2");
	var_Items->PutCellPicture(h,long(0),((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))));
	var_Items->PutItemHeight(h,48);

279:
How can I find the number or the count of selected items

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutSingleSel(VARIANT_FALSE);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->PutSelectItem(var_Items->GetFirstVisibleItem(),VARIANT_TRUE);
	var_Items->PutSelectItem(var_Items->GetNextVisibleItem(var_Items->GetFirstVisibleItem()),VARIANT_TRUE);
	var_Items->Add(var_Items->GetSelectCount());

278:
How do I unselect an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->PutSelectItem(h,VARIANT_FALSE);

277:
How do I find the selected item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->PutSelectItem(h,VARIANT_TRUE);
	var_Items->PutItemBold(var_Items->GetSelectedItem(0),VARIANT_TRUE);

276:
How do I un select all items

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutSingleSel(VARIANT_FALSE);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->UnselectAll();

275:
How do I select multiple items

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutSingleSel(VARIANT_FALSE);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->PutSelectItem(var_Items->GetFirstVisibleItem(),VARIANT_TRUE);
	var_Items->PutSelectItem(var_Items->GetNextVisibleItem(var_Items->GetFirstVisibleItem()),VARIANT_TRUE);

274:
How do I select all items

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutSingleSel(VARIANT_FALSE);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->SelectAll();

273:
How do I select an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->PutSelectItem(var_Items->GetNextVisibleItem(var_Items->GetFocusItem()),VARIANT_TRUE);

272:
Can I display a button with some picture or icon inside

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif");
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1)," Button <img>p1</img> ");
	var_Items->PutCaptionFormat(h,long(1),EXLISTLib::exHTML);
	var_Items->PutCellHAlignment(h,long(1),EXLISTLib::RightAlignment);
	var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
	var_Items->PutItemHeight(h,48);

271:
Can I display a button with some picture or icon inside

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1)," Button <img>1</img> ");
	var_Items->PutCaptionFormat(h,long(1),EXLISTLib::exHTML);
	var_Items->PutCellHAlignment(h,long(1),EXLISTLib::RightAlignment);
	var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);

270:
Can I display a button with some icon inside

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1)," <img>1</img> ");
	var_Items->PutCaptionFormat(h,long(1),EXLISTLib::exHTML);
	var_Items->PutCellHAlignment(h,long(1),EXLISTLib::RightAlignment);
	var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);

269:
How can I assign multiple icon/picture to a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif");
spList1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif");
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("text <img>p1</img> another picture <img>p2</img> and so on");
	var_Items->PutCaptionFormat(h,long(0),EXLISTLib::exHTML);
	var_Items->PutCellPicture(h,long(0),((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))));
	var_Items->PutItemHeight(h,48);
	var_Items->Add("Item 2");

268:
How can I assign an icon/picture to a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->PutCellPicture(h,long(0),((IDispatch*)(spList1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))));
	var_Items->PutItemHeight(h,48);
	var_Items->Add("Item 2");

267:
How can I assign multiple icons/pictures to a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item <img>1</img> 1, <img>2</img>, ... and so on ");
	var_Items->PutCaptionFormat(h,long(0),EXLISTLib::exHTML);

266:
How can I assign multiple icons/pictures to a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->PutCellImages(h,long(0),"1,2,3");

265:
How can I assign an icon/picture to a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	var_Items->PutCellImage(h,long(0),1);
	var_Items->PutCellImage(var_Items->Add("Item 2"),long(0),2);
	var_Items->PutCellImage(var_Items->Add("Item 3"),long(0),3);

264:
How can I display a button inside the item or cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1)," Button 1 ");
	var_Items->PutCellHAlignment(h,long(1),EXLISTLib::RightAlignment);
	var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
	h = var_Items->Add("Cell 2");
	var_Items->PutCaption(h,long(1)," Button 2 ");
	var_Items->PutCellHAlignment(h,long(1),EXLISTLib::CenterAlignment);
	var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);

263:
How can I change the state of a radio button

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSelBackColor(RGB(255,255,128));
spList1->PutSelForeColor(RGB(0,0,0));
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
spList1->GetColumns()->Add(L"C3");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"Radio 1");
	var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE);
	var_Items->PutCellRadioGroup(h,long(1),1234);
	var_Items->PutCaption(h,long(2),"Radio 2");
	var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE);
	var_Items->PutCellRadioGroup(h,long(2),1234);
	var_Items->PutCellState(h,long(1),1);

262:
How can I assign a radio button to a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutMarkSearchColumn(VARIANT_FALSE);
spList1->PutSelBackColor(RGB(255,255,128));
spList1->PutSelForeColor(RGB(0,0,0));
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
spList1->GetColumns()->Add(L"C3");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"Radio 1");
	var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE);
	var_Items->PutCellRadioGroup(h,long(1),1234);
	var_Items->PutCaption(h,long(2),"Radio 2");
	var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE);
	var_Items->PutCellRadioGroup(h,long(2),1234);
	var_Items->PutCellState(h,long(1),1);

261:
How can I change the state of a checkbox

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"Check Box");
	var_Items->PutCellHasCheckBox(h,long(1),VARIANT_TRUE);
	var_Items->PutCellState(h,long(1),1);

260:
How can I assign a checkbox to a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"Check Box");
	var_Items->PutCellHasCheckBox(h,long(1),VARIANT_TRUE);

259:
How can I display an item or a cell on multiple lines

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutScrollBySingleLine(VARIANT_TRUE);
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"This is bit of text that's shown on multiple lines");
	var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);

258:
How can I assign a tooltip to a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"tooltip");
	var_Items->PutCellToolTip(h,long(1),L"This is bit of text that's shown when the user hovers the cell");

257:
How can I associate an extra data to a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"Cell 2");
	var_Items->PutCellData(h,long(1),"your extra data");

256:
How do I enable or disable a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"Cell 2");
	var_Items->PutCellEnabled(h,long(1),VARIANT_FALSE);

255:
How do I change the cell's foreground color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"Cell 2");
	var_Items->PutCellForeColor(h,long(1),RGB(255,0,0));

254:
How do I change the visual effect for the cell, using your EBN files

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"Cell 2");
	var_Items->PutCellBackColor(h,long(1),0x1000000);

253:
How do I change the cell's background color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Cell 1");
	var_Items->PutCaption(h,long(1),"Cell 2");
	var_Items->PutCellBackColor(h,long(1),RGB(255,0,0));

252:
How do I change the caption or value for a particular cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaption(var_Items->Add("Cell 1"),long(1),"Cell 2");

251:
How do I retrieve the focused item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("Item 1");
	var_Items->Add("Item 2");
	var_Items->Add("Item 3");
	var_Items->PutItemBold(var_Items->GetFocusItem(),VARIANT_TRUE);

250:
How do I enumerate the visible items

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("Item 1");
	h = var_Items->Add("Item 2");
	var_Items->PutItemBold(var_Items->GetFirstVisibleItem(),VARIANT_TRUE);
	var_Items->PutItemBold(var_Items->GetNextVisibleItem(var_Items->GetFirstVisibleItem()),VARIANT_TRUE);

249:
How can I make an item unselectable, or not selectable

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Column");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("unselectable - you can't get selected");
	var_Items->PutSelectableItem(h,VARIANT_FALSE);
	var_Items->Add("selectable");

248:
How can I hide or show an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Column");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	long h = var_Items->Add("hidden");
	var_Items->PutItemHeight(h,0);
	var_Items->PutSelectableItem(h,VARIANT_FALSE);
	var_Items->Add("visible");

247:
How can I change the height for all items

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutDefaultItemHeight(32);
spList1->GetColumns()->Add(L"Column");
spList1->GetItems()->Add("One");
spList1->GetItems()->Add("Two");

246:
How do I change the height of an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutScrollBySingleLine(VARIANT_TRUE);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemHeight(var_Items->Add("height"),128);
spList1->GetItems()->Add("enabled");

245:
How do I disable or enable an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutEnableItem(var_Items->Add("disabled"),VARIANT_FALSE);
spList1->GetItems()->Add("enabled");

244:
How do I display as strikeout a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCellStrikeOut(var_Items->Add("strikeout"),long(0),VARIANT_TRUE);

243:
How do I display as strikeout a cell or an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaptionFormat(var_Items->Add("gets <s>strikeout</s> only a portion of text"),long(0),EXLISTLib::exHTML);

242:
How do I display as strikeout an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemStrikeOut(var_Items->Add("strikeout"),VARIANT_TRUE);

241:
How do I underline a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCellUnderline(var_Items->Add("underline"),long(0),VARIANT_TRUE);

240:
How do I underline a cell or an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaptionFormat(var_Items->Add("gets <u>underline</u> only a portion of text"),long(0),EXLISTLib::exHTML);

239:
How do I underline an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemUnderline(var_Items->Add("underline"),VARIANT_TRUE);

238:
How do I display as italic a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCellItalic(var_Items->Add("italic"),long(0),VARIANT_TRUE);

237:
How do I display as italic a cell or an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaptionFormat(var_Items->Add("gets <i>italic</i> only a portion of text"),long(0),EXLISTLib::exHTML);

236:
How do I display as italic an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemItalic(var_Items->Add("italic"),VARIANT_TRUE);

235:
How do I bold a cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCellBold(var_Items->Add("bold"),long(0),VARIANT_TRUE);

234:
How do I bold a cell or an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaptionFormat(var_Items->Add("gets <b>bold</b> only a portion of text"),long(0),EXLISTLib::exHTML);

233:
How do I bold an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemBold(var_Items->Add("bold"),VARIANT_TRUE);

232:
How do I change the foreground color for the item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemForeColor(var_Items->Add("Item"),RGB(255,0,0));

231:
How do I change the visual appearance for the item, using your EBN technology

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemBackColor(var_Items->Add("Item"),0x1000000);

230:
How do I change the background color for the item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemBackColor(var_Items->Add("Item"),RGB(255,0,0));

229:
How do I associate an extra data to an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutItemData(var_Items->Add("item"),"your extra data");

228:
How do I programmatically edit a cell

// Click event - Occurs when the user presses and then releases the left mouse button over the list control.
void OnClickList1()
{
	// Items.Edit(Items.FocusItem,0)
}

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutAllowEdit(VARIANT_TRUE);
spList1->GetColumns()->Add(L"Default");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->Add("");

227:
How can I ensure or scroll the control so the item fits the control's client area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
long h = spList1->GetItems()->Add("item");
spList1->GetItems()->EnsureVisibleItem(h);

226:
How can I remove or delete all items
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
spList1->GetItems()->Add("removed item");
spList1->GetItems()->RemoveAll();

225:
How can I remove or delete an item
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
long h = spList1->GetItems()->Add("removed item");
spList1->GetItems()->Remove(h);

224:
How can I add or insert an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"C1");
spList1->GetColumns()->Add(L"C2");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaption(var_Items->Add("Cell 1"),long(1),"Cell 2");
	long h = var_Items->Add("Cell 3");
	var_Items->PutCaption(h,long(1),"Cell 4");

223:
How can I add or insert an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"Default");
spList1->GetItems()->Add("new item");

222:
How can I get the columns as they are shown in the control's sortbar
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
ObjectPtr var_Object = ((ObjectPtr)(spList1->GetColumns()->GetItemBySortPosition(long(0))));

221:
How can I access the properties of a column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"A");
spList1->GetColumns()->GetItem("A")->PutHeaderBold(VARIANT_TRUE);

220:
How can I remove all the columns
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Clear();

219:
How can I remove a column
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Remove("A");

218:
How can I get the number or the count of columns
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
long var_Count = spList1->GetColumns()->GetCount();

217:
How can I change the font for all cells in the entire column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'stdole' for the library: 'OLE Automation'

	#import <stdole2.tlb>
*/
stdole::FontPtr f = ::CreateObject(L"StdFont");
	f->PutName(L"Tahoma");
	f->PutSize(_variant_t(long(12)));
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing);
	var_ConditionalFormat->PutFont(IFontDispPtr(((stdole::FontPtr)(f))));
	var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns);
spList1->GetColumns()->Add(L"Column");
spList1->GetItems()->Add(long(0));
spList1->GetItems()->Add(long(1));

216:
How can I change the background color for all cells in the column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing);
	var_ConditionalFormat->PutBackColor(RGB(255,0,0));
	var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns);
spList1->GetColumns()->Add(L"Column");
spList1->GetItems()->Add(long(0));
spList1->GetItems()->Add(long(1));

215:
How can I change the foreground color for all cells in the column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing);
	var_ConditionalFormat->PutForeColor(RGB(255,0,0));
	var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns);
spList1->GetColumns()->Add(L"Column");
spList1->GetItems()->Add(long(0));
spList1->GetItems()->Add(long(1));

214:
How can I show as strikeout all cells in the column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing);
	var_ConditionalFormat->PutStrikeOut(VARIANT_TRUE);
	var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns);
spList1->GetColumns()->Add(L"Column");
spList1->GetItems()->Add(long(0));
spList1->GetItems()->Add(long(1));

213:
How can I underline all cells in the column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing);
	var_ConditionalFormat->PutUnderline(VARIANT_TRUE);
	var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns);
spList1->GetColumns()->Add(L"Column");
spList1->GetItems()->Add(long(0));
spList1->GetItems()->Add(long(1));

212:
How can I show in italic all data in the column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing);
	var_ConditionalFormat->PutItalic(VARIANT_TRUE);
	var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns);
spList1->GetColumns()->Add(L"Column");
spList1->GetItems()->Add(long(0));
spList1->GetItems()->Add(long(1));

211:
How can I bold the entire column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"1",vtMissing);
	var_ConditionalFormat->PutBold(VARIANT_TRUE);
	var_ConditionalFormat->PutApplyTo(EXLISTLib::exFormatToColumns);
spList1->GetColumns()->Add(L"Column");
spList1->GetItems()->Add(long(0));
spList1->GetItems()->Add(long(1));

210:
How can I display a computed column and highlight some values that are negative or less than a value

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"A");
spList1->GetColumns()->Add(L"B");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"(A+B)*1.19")))->PutComputedField(L"(%0 + %1) * 1.19");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaption(var_Items->Add(long(1)),long(1),long(2));
EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems();
	var_Items1->PutCaption(var_Items1->Add(long(10)),long(1),long(20));
EXLISTLib::IConditionalFormatPtr var_ConditionalFormat = spList1->GetConditionalFormats()->Add(L"%2 > 10",vtMissing);
	var_ConditionalFormat->PutBold(VARIANT_TRUE);
	var_ConditionalFormat->PutForeColor(RGB(255,0,0));
	var_ConditionalFormat->PutApplyTo(EXLISTLib::FormatApplyToEnum(0x2));

209:
Can I display a computed column so it displays the VAT, or SUM

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"A");
spList1->GetColumns()->Add(L"B");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"(A+B)*1.19")))->PutComputedField(L"(%0 + %1) * 1.19");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaption(var_Items->Add(long(1)),long(1),long(2));
EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems();
	var_Items1->PutCaption(var_Items1->Add(long(10)),long(1),long(20));

208:
How can I show a column that adds values in the cells

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->GetColumns()->Add(L"A");
spList1->GetColumns()->Add(L"B");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"A+B")))->PutComputedField(L"%0 + %1");
EXLISTLib::IItemsPtr var_Items = spList1->GetItems();
	var_Items->PutCaption(var_Items->Add(long(1)),long(1),long(2));
EXLISTLib::IItemsPtr var_Items1 = spList1->GetItems();
	var_Items1->PutCaption(var_Items1->Add(long(10)),long(1),long(20));

207:
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Filter")));
	var_Column->PutFilterOnType(VARIANT_TRUE);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutAutoSearch(EXLISTLib::exContains);
spList1->GetItems()->Add("Canada");
spList1->GetItems()->Add("USA");

206:
Is there any function to filter the control's data as I type, something like filter on type

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Filter")));
	var_Column->PutFilterOnType(VARIANT_TRUE);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
spList1->GetItems()->Add("Canada");
spList1->GetItems()->Add("USA");

205:
How can I programmatically filter a column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Filter")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXLISTLib::exNonBlanks);
spList1->GetItems()->Add(vtMissing);
spList1->GetItems()->Add("not empty");
spList1->ApplyFilter();

204:
How can I show or display the control's filter

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE);

203:
How can I customize the items being displayed in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
EXLISTLib::IColumnPtr var_Column = ((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Custom Filter")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutCustomFilter(_bstr_t("Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.") +
"txt|*.log");
	var_Column->PutFilterType(EXLISTLib::exPattern);
	var_Column->PutFilter(L"*.xls");
spList1->GetItems()->Add("excel.xls");
spList1->GetItems()->Add("word.doc");
spList1->GetItems()->Add("pp.pps");
spList1->GetItems()->Add("text.txt");
spList1->ApplyFilter();

202:
How can I change the order or the position of the columns in the sort bar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
spList1->PutSortBarVisible(VARIANT_TRUE);
spList1->PutSortBarColumnWidth(48);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C1")))->PutSortOrder(EXLISTLib::SortAscending);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"C2")))->PutSortOrder(EXLISTLib::SortDescending);
spList1->GetColumns()->GetItem("C2")->PutSortPosition(0);

201:
How do I arrange my columns on multiple levels

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXLISTLib' for the library: 'ExList 1.0 Control Library'

	#import <ExList.dll>
	using namespace EXLISTLib;
*/
EXLISTLib::IListPtr spList1 = GetDlgItem(IDC_LIST1)->GetControlUnknown();
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"S")))->PutWidth(32);
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1));
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1));
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 4")))->PutLevelKey(long(1));
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 1")))->PutLevelKey("2");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 2")))->PutLevelKey("2");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 3")))->PutLevelKey("2");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"Level 4")))->PutLevelKey("2");
((EXLISTLib::IColumnPtr)(spList1->GetColumns()->Add(L"E")))->PutWidth(32);