1. How can I add a new column
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"ColumnName");
2. How can I add multiple columns
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2");
3. How can I change/rename the column's name
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"ColumnName")))->PutCaption(L"NewName");
4. How can I use HTML format in column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"ColumnName")))->PutHTMLCaption(L"<b>HTML</b> <fgcolor=0000FF>Col</fgcolor>umn");
5. How can I insert an icon to column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"ColumnName")))->PutHeaderImage(1);
6. How can I insert an icon to column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"ColumnName")))->PutHTMLCaption(L"<b>HTML</b> Column <img>1</img> Icon");
7. Can I displays a custom size picture to column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif");
spGantt1->PutHeaderHeight(48);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"ColumnName")))->PutHTMLCaption(L"<b>HTML</b> Column <img>pic1</img> Picture");
8. Is there any option to align the header to the left and the data to the right
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Left")))->PutAlignment(EXGANTTLib::LeftAlignment);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Right")));
	var_Column->PutAlignment(EXGANTTLib::RightAlignment);
	var_Column->PutHeaderAlignment(EXGANTTLib::RightAlignment);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellCaption(var_Items->AddItem("left"),long(1),"right");
9. Can I disable sorting a column, when the user clicks the column's header, or drag it to the sort bar
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Unsortable")))->PutAllowSort(VARIANT_FALSE);
spGantt1->GetColumns()->Add(L"Sortable");
10. How can I hide the searching column
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->GetColumns()->Add(L"Column 1");
spGantt1->GetColumns()->Add(L"Column 2");
spGantt1->GetItems()->AddItem(vtMissing);
11. How can I show or hide a column
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Hidden")))->PutVisible(VARIANT_FALSE);
12. How can I change the column's width
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutColumnAutoResize(VARIANT_FALSE);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutWidth(64);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 2")))->PutWidth(128);
13. How can I show both scrollbars
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutScrollBars(EXGANTTLib::exDisableBoth);
14. How can I assign checkboxes for the entire column
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutDef(EXGANTTLib::exCellHasCheckBox,VARIANT_TRUE);
spGantt1->GetItems()->AddItem(long(0));
spGantt1->GetItems()->AddItem(long(1));
spGantt1->GetItems()->AddItem(long(2));
15. How can I assign a check box for a cell
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Column 1");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(long(0));
	var_Items->PutCellHasCheckBox(var_Items->AddItem(long(1)),long(0),VARIANT_TRUE);
	var_Items->AddItem(long(2));
16. How can I assign a different background color for the entire column
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutDef(EXGANTTLib::exCellBackColor,long(255));
spGantt1->GetColumns()->Add(L"Column 2");
spGantt1->GetItems()->AddItem(long(0));
spGantt1->GetItems()->AddItem(long(1));
spGantt1->GetItems()->AddItem(long(2));
17. How can I show the control's grid lines
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutDrawGridLines(EXGANTTLib::exAllLines);
spGantt1->GetColumns()->Add(L"Column 1");
spGantt1->GetColumns()->Add(L"Column 2");
spGantt1->GetItems()->AddItem(long(0));
spGantt1->GetItems()->AddItem(long(1));
spGantt1->GetItems()->AddItem(long(2));
18. How can I draw grid lines only for visible items
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutDrawGridLines(EXGANTTLib::exRowLines);
spGantt1->GetColumns()->Add(L"Column 1");
spGantt1->GetColumns()->Add(L"Column 2");
spGantt1->GetItems()->AddItem(long(0));
spGantt1->GetItems()->AddItem(long(1));
spGantt1->GetItems()->AddItem(long(2));
19. Can I display multiple icons to the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"1<img>1</img> 2 <img>2</img>...");
20. Can I change the height of the header bar
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutHeaderHeight(32);
21. Can I change the font to display the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutHeaderHeight(34);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"<font Tahoma;14>Column</font> 1");
22. Is there any option to change the color for the grid lines
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"");
spGantt1->PutDrawGridLines(EXGANTTLib::exAllLines);
spGantt1->PutGridLineColor(255);
23. Does your control support partial-check ( three states ) feature for each column
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"P1")));
	var_Column->PutDef(EXGANTTLib::exCellHasCheckBox,VARIANT_TRUE);
	var_Column->PutPartialCheck(VARIANT_TRUE);
EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"P2")));
	var_Column1->PutDef(EXGANTTLib::exCellHasCheckBox,VARIANT_TRUE);
	var_Column1->PutPartialCheck(VARIANT_TRUE);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,long(0),"Child 1");
	var_Items->InsertItem(h,long(0),"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
24. Why child items are not shown
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->GetColumns()->Add(L"Column 1");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,long(0),"Child 1");
	var_Items->InsertItem(h,long(0),"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
25. Is there any option to bold the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutHeaderBold(VARIANT_TRUE);
26. How can I bold only a portion of the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"<b>Col</b>umn 1");
27. Is there any option to make italic the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutHeaderItalic(VARIANT_TRUE);
28. How can I apply an italic font only a portion of the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"<i>Col</i>umn 1");
29. How can I underline the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutHeaderUnderline(VARIANT_TRUE);
30. How can I get underlined only a portion of column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"<u>Col</u>umn 1");
31. How can I apply an strikeout font only a portion of the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutHTMLCaption(L"<s>Col</s>umn 1");
32. Can I make strikeout the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")))->PutHeaderStrikeOut(VARIANT_TRUE);
33. How can I change the position of the column
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Column 1");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 2")))->PutPosition(0);
34. How do I change the "All", "Blanks" or/and "NonBlanks" caption in the drop down filter window
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")))->PutDisplayFilterButton(VARIANT_TRUE);
spGantt1->PutDescription(EXGANTTLib::exFilterBarAll,L"new name for (All)");
35. Can I remove the "All", "Blanks" and "NonBlanks" items in the drop down filter window
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")))->PutDisplayFilterButton(VARIANT_TRUE);
spGantt1->PutDescription(EXGANTTLib::exFilterBarAll,L"");
spGantt1->PutDescription(EXGANTTLib::exFilterBarBlanks,L"");
spGantt1->PutDescription(EXGANTTLib::exFilterBarNonBlanks,L"");
36. How can I change the "Filter For" caption in the column's drop down filter window
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")))->PutDisplayFilterButton(VARIANT_TRUE);
spGantt1->PutDescription(EXGANTTLib::exFilterBarFilterForCaption,L"new caption");
37. Is there any option to remove the tooltip when the cursor hovers the column's drop down filter window
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")))->PutDisplayFilterButton(VARIANT_TRUE);
spGantt1->PutDescription(EXGANTTLib::exFilterBarFilterTitle,L"");
spGantt1->PutDescription(EXGANTTLib::exFilterBarPatternFilterTitle,L"");
spGantt1->PutDescription(EXGANTTLib::exFilterBarTooltip,L"");
spGantt1->PutDescription(EXGANTTLib::exFilterBarPatternTooltip,L"");
spGantt1->PutDescription(EXGANTTLib::exFilterBarFilterForTooltip,L"");
spGantt1->PutDescription(EXGANTTLib::exFilterBarDateTooltip,L"");
spGantt1->PutDescription(EXGANTTLib::exFilterBarDateTitle,L"");
38. The "IsBlank" caption shown in the control's filterbar when I select "Blanks" or "NonBlanks" items in the column's drop down filter window
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exBlanks);
spGantt1->PutDescription(EXGANTTLib::exFilterBarIsBlank,L"Is Empty");
spGantt1->PutDescription(EXGANTTLib::exFilterBarIsNonBlank,L"Is Not Empty");
spGantt1->ApplyFilter();
39. Can I change the AND string in the filter bar
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exBlanks);
EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 2")));
	var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column1->PutFilterType(EXGANTTLib::exNonBlanks);
spGantt1->PutDescription(EXGANTTLib::exFilterBarAnd,L" & ");
spGantt1->ApplyFilter();
40. Can I change the OR string in the filter bar
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exBlanks);
EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 2")));
	var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column1->PutFilterType(EXGANTTLib::exNonBlanks);
spGantt1->PutFilterCriteria(L"%0 or %1");
spGantt1->PutDescription(EXGANTTLib::exFilterBarOr,L" | ");
spGantt1->ApplyFilter();
41. Can I change the NOT string in the filter bar
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exBlanks);
EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 2")));
	var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column1->PutFilterType(EXGANTTLib::exNonBlanks);
spGantt1->PutFilterCriteria(L"not %0 or %1");
spGantt1->PutDescription(EXGANTTLib::exFilterBarNot,L" ! ");
spGantt1->PutDescription(EXGANTTLib::exFilterBarIsNonBlank,L" ! IsBlank");
spGantt1->ApplyFilter();
42. Can I filter for values using OR - NOT , instead AND operator
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 1")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exBlanks);
EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 2")));
	var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column1->PutFilterType(EXGANTTLib::exBlanks);
EXGANTTLib::IColumnPtr var_Column2 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column 3")));
	var_Column2->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column2->PutFilterType(EXGANTTLib::exBlanks);
spGantt1->PutFilterCriteria(L"%0 or not %1 and %2");
spGantt1->ApplyFilter();
43. Can I change the "Date:" caption when the column's drop down filter window is shown
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
spGantt1->PutDescription(EXGANTTLib::exFilterBarDate,L"Range");
spGantt1->ApplyFilter();
44. How can I filter the items that are between an interval/range of dates
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
spGantt1->ApplyFilter();
45. The drop down filter window displays a "to" string between two datem when I filter dates. Can I change that
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
spGantt1->PutDescription(EXGANTTLib::exFilterBarDateTo,L"->");
spGantt1->ApplyFilter();
46. Can I change the "Today" caption being displayed in the drop down calendar, when I filter for dates
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
spGantt1->PutDescription(EXGANTTLib::exFilterBarDateTodayCaption,L"Azi");
spGantt1->ApplyFilter();
47. How can I change the name of the months in the drop down calendar window, being displayed when I filter items between dates
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
spGantt1->PutDescription(EXGANTTLib::exFilterBarDateMonths,L"Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre");
spGantt1->ApplyFilter();
48. How can I change the name of the week days in the drop down calendar window, being displayed when I filter items between dates
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
spGantt1->PutDescription(EXGANTTLib::exFilterBarDateWeekDays,L"Du Lu Ma Mi Jo Vi Si");
spGantt1->ApplyFilter();
49. How can I change the "Checked" caption in the drop down filter window, when I filter for checked items
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exCheck);
spGantt1->PutDescription(EXGANTTLib::exFilterBarChecked,L"with check on");
spGantt1->PutDescription(EXGANTTLib::exFilterBarUnchecked,L"with check off");
50. How can I change the "IsChecked/IsUnchecked" caption in the control's filter bar, when I filter for checked items
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exCheck);
	var_Column->PutFilter(L"0");
spGantt1->PutDescription(EXGANTTLib::exFilterBarIsChecked,L"Check_On");
spGantt1->PutDescription(EXGANTTLib::exFilterBarIsUnchecked,L"Check_Off");
spGantt1->ApplyFilter();
51. How do I change visual appearance of the +/- ( expand/collapse ) buttons
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exGroupLinesAtRoot);
spGantt1->PutHasButtons(EXGANTTLib::exWPlus);
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,long(0),"Child 1");
	var_Items->InsertItem(h,long(0),"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,long(0),"Child");
52. Can I use my own icons for the +/- ( expand/collapse ) buttons
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spGantt1->PutLinesAtRoot(EXGANTTLib::exGroupLinesAtRoot);
spGantt1->PutHasButtons(EXGANTTLib::exCustom);
spGantt1->PutHasButtonsCustom(0,1);
spGantt1->PutHasButtonsCustom(1,2);
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,long(0),"Child 1");
	var_Items->InsertItem(h,long(0),"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,long(0),"Child");
53. Can I change the style or type for the hierarchy lines
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exGroupLinesAtRoot);
spGantt1->PutHasLines(EXGANTTLib::exThinLine);
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,long(0),"Child 1");
	var_Items->InsertItem(h,long(0),"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,long(0),"Child");
54. Can I hide the hierarchy lines
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exGroupLinesAtRoot);
spGantt1->PutHasLines(EXGANTTLib::exNoLine);
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,long(0),"Child 1");
	var_Items->InsertItem(h,long(0),"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,long(0),"Child");
55. How can I show the control's grid lines only for added/visible items
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutDrawGridLines(EXGANTTLib::exRowLines);
spGantt1->GetColumns()->Add(L"Column 1");
spGantt1->GetColumns()->Add(L"Column 2");
spGantt1->GetItems()->AddItem(long(0));
spGantt1->GetItems()->AddItem(long(1));
spGantt1->GetItems()->AddItem(long(2));
56. How can I show only the vertical scroll bar
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutScrollBars(EXGANTTLib::exDisableNoVertical);
spGantt1->GetColumns()->Add(L"1");
spGantt1->GetColumns()->Add(L"2");
57. How can I display the column's filter
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"")))->PutDisplayFilterButton(VARIANT_TRUE);
58. How can I can I select programmatically "Blanks/NonBlanks" option in the column's drop down filter
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exBlanks);
spGantt1->ApplyFilter();
59. How can I can I filter programmatically given a specified pattern using wild characters like * or
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exPattern);
	var_Column->PutFilter(L"0*");
spGantt1->GetItems()->AddItem(long(0));
spGantt1->GetItems()->AddItem("00");
spGantt1->GetItems()->AddItem(long(1));
spGantt1->GetItems()->AddItem("11");
spGantt1->ApplyFilter();
60. How can I can I filter programmatically the items based on a range/interval of dates
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exDate);
	var_Column->PutFilter(L"1/1/2001 to 1/1/2002");
spGantt1->GetItems()->AddItem("1/1/2001");
spGantt1->GetItems()->AddItem("2/1/2002");
spGantt1->ApplyFilter();
61. How can I can I filter programmatically the items based on some numerichal rules
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exNumeric);
	var_Column->PutFilter(L"> 0 <= 1");
spGantt1->GetItems()->AddItem(long(0));
spGantt1->GetItems()->AddItem(long(1));
spGantt1->GetItems()->AddItem(long(2));
spGantt1->ApplyFilter();
62. How can I can I programmatically filter the checked items
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDef(EXGANTTLib::exCellHasCheckBox,VARIANT_TRUE);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exCheck);
	var_Column->PutFilter(L"0");
spGantt1->GetItems()->AddItem(long(0));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellState(var_Items->AddItem(long(1)),long(0),1);
spGantt1->GetItems()->AddItem(long(2));
spGantt1->ApplyFilter();
63. How can I can I programmatically filter for items with a specified icon assigned
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exImage);
	var_Column->PutFilter(L"1");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellImage(var_Items->AddItem("Image 1"),long(0),1);
	var_Items->PutCellImage(var_Items->AddItem("Image 1"),long(0),1);
	var_Items->PutCellImage(var_Items->AddItem("Image 2"),long(0),2);
	var_Items->PutCellImage(var_Items->AddItem("Image 3"),long(0),3);
spGantt1->ApplyFilter();
64. How do I filter for items that match exactly the specified string
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exFilter);
	var_Column->PutFilter(L"Item 1");
spGantt1->GetItems()->AddItem("Item 1");
spGantt1->GetItems()->AddItem("Item 2");
spGantt1->GetItems()->AddItem("Item 3");
spGantt1->ApplyFilter();
65. Is there any way to get listed only visible items in the drop down filter window
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->PutDescription(EXGANTTLib::exFilterBarAll,L"");
spGantt1->PutDescription(EXGANTTLib::exFilterBarBlanks,L"");
spGantt1->PutDescription(EXGANTTLib::exFilterBarNonBlanks,L"");
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"P1")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXGANTTLib::exVisibleItems);
EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"P2")));
	var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column1->PutDisplayFilterPattern(VARIANT_FALSE);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("R1");
	var_Items->PutCellCaption(h,long(1),"R2");
	var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Cell 1.1"),long(1),"Cell 1.2");
	var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Cell 2.1"),long(1),"Cell 2.2");
66. How can I get ride/hide of the "Filter For" field
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
67. I have a hierarchy and I need to filter only parent items that match, including thier childs
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->PutFilterInclude(EXGANTTLib::exItemsWithChilds);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exFilter);
	var_Column->PutFilter(L"R1");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("R1");
	var_Items->InsertItem(h,long(0),"C1");
	var_Items->InsertItem(h,long(0),"C2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("R2");
	var_Items->InsertItem(h,long(0),"C1");
	var_Items->InsertItem(h,long(0),"C2");
spGantt1->ApplyFilter();
68. I have a hierarchy and I need to filter only root items that match, without thier childs
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->PutFilterInclude(EXGANTTLib::exRootsWithoutChilds);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exFilter);
	var_Column->PutFilter(L"R1");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("R1");
	var_Items->InsertItem(h,long(0),"C1");
	var_Items->InsertItem(h,long(0),"C2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("R2");
	var_Items->InsertItem(h,long(0),"C1");
	var_Items->InsertItem(h,long(0),"C2");
spGantt1->ApplyFilter();
69. I have a hierarchy and I need to filter only root items that match, with thier childs
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->PutFilterInclude(EXGANTTLib::exRootsWithChilds);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutFilterType(EXGANTTLib::exFilter);
	var_Column->PutFilter(L"R1");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("R1");
	var_Items->InsertItem(h,long(0),"C1");
	var_Items->InsertItem(h,long(0),"C2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("R2");
	var_Items->InsertItem(h,long(0),"C1");
	var_Items->InsertItem(h,long(0),"C2");
spGantt1->ApplyFilter();
70. How do I remove the control's border
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutAppearance(EXGANTTLib::None2);
71. How do change the visual appearance for the control's header bar, using EBN
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGantt1->PutBackColorHeader(16777216);
72. How do I hide the control's header bar
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutHeaderVisible(VARIANT_FALSE);
73. How do I sort a column by numbers
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"desc")))->PutSortType(EXGANTTLib::SortNumeric);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(long(1));
	var_Items->AddItem(long(5));
	var_Items->AddItem(long(10));
	var_Items->SortChildren(0,long(0),VARIANT_FALSE);
74. By default, the column gets sorted as strings, so how do I sort a column by dates
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"desc")))->PutSortType(EXGANTTLib::SortDate);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("1/1/2001");
	var_Items->AddItem("1/2/2002");
	var_Items->AddItem("1/3/2003");
	var_Items->SortChildren(0,long(0),VARIANT_FALSE);
75. By default, the column gets sorted as strings, so how do I sort a column by date and time
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"desc")))->PutSortType(EXGANTTLib::SortDateTime);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("1/1/2001 11:00:00 AM");
	var_Items->AddItem("1/1/2001 10:10:00 AM");
	var_Items->AddItem("1/3/2003");
	var_Items->SortChildren(0,long(0),VARIANT_FALSE);
76. By default, the column gets sorted as strings, so how do I sort a column by time only
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"desc")))->PutSortType(EXGANTTLib::SortTime);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("11:00");
	var_Items->AddItem("10:10");
	var_Items->AddItem("12:12");
	var_Items->SortChildren(0,long(0),VARIANT_FALSE);
77. How do I perform my own/custom sort, using my extra numbers
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"desc")))->PutSortType(EXGANTTLib::SortUserData);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellData(var_Items->AddItem(long(0)),long(0),long(2));
	var_Items->PutCellData(var_Items->AddItem(long(1)),long(0),long(1));
	var_Items->PutCellData(var_Items->AddItem(long(2)),long(0),long(0));
	var_Items->SortChildren(0,long(0),VARIANT_FALSE);
78. How do I perform my own/custom sort, using my extra strings
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"desc")))->PutSortType(EXGANTTLib::SortUserData);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellData(var_Items->AddItem("A"),long(0),"C");
	var_Items->PutCellData(var_Items->AddItem("B"),long(0),"B");
	var_Items->PutCellData(var_Items->AddItem("C"),long(0),"A");
	var_Items->SortChildren(0,long(0),VARIANT_FALSE);
79. How do I sort ascending a column, and put the sorting icon in the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("Item 3");
	var_Items->AddItem("Item 1");
	var_Items->AddItem("Item 2");
spGantt1->GetColumns()->GetItem(long(0))->PutSortOrder(EXGANTTLib::SortAscending);
80. How do I sort descending a column, and put the sorting icon in the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("Item 1");
	var_Items->AddItem("Item 2");
	var_Items->AddItem("Item 3");
spGantt1->GetColumns()->GetItem(long(0))->PutSortOrder(EXGANTTLib::SortDescending);
81. How do I put a picture on the control's background
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutPicture(IPictureDispPtr(((IDispatch*)(spGantt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
82. How do I put a picture on the control's left top corner
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutPicture(IPictureDispPtr(((IDispatch*)(spGantt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spGantt1->PutPictureDisplay(EXGANTTLib::UpperLeft);
83. How do I put a picture on the control's right top corner
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutPicture(IPictureDispPtr(((IDispatch*)(spGantt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spGantt1->PutPictureDisplay(EXGANTTLib::UpperRight);
84. How do I put a picture on the control's center top side
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutPicture(IPictureDispPtr(((IDispatch*)(spGantt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spGantt1->PutPictureDisplay(EXGANTTLib::UpperCenter);
85. How do I put a picture on the control's center left bottom side
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutPicture(IPictureDispPtr(((IDispatch*)(spGantt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spGantt1->PutPictureDisplay(EXGANTTLib::LowerLeft);
86. How do I put a picture on the control's center right bottom side
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutPicture(IPictureDispPtr(((IDispatch*)(spGantt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spGantt1->PutPictureDisplay(EXGANTTLib::LowerRight);
87. How do I resize/stretch a picture on the control's background
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutPicture(IPictureDispPtr(((IDispatch*)(spGantt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spGantt1->PutPictureDisplay(EXGANTTLib::Stretch);
88. How do I put a picture on the center of the control
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutPicture(IPictureDispPtr(((IDispatch*)(spGantt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spGantt1->PutPictureDisplay(EXGANTTLib::MiddleCenter);
89. How do I disable sorting the columns when clicking the control's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutSortOnClick(EXGANTTLib::exNoSort);
spGantt1->GetColumns()->Add(L"1");
spGantt1->GetColumns()->Add(L"2");
90. How do I disable sorting a specified column when clicking its header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"1");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"NoSort")))->PutAllowSort(VARIANT_FALSE);
91. How do I perform my own sorting when user clicks the column's header
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutSortOnClick(EXGANTTLib::exUserSort);
spGantt1->GetColumns()->Add(L"Column");
spGantt1->GetItems()->AddItem("Item 1");
spGantt1->GetItems()->AddItem("Item 2");
92. How do I use my own icons for checkbox cells
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spGantt1->PutCheckImage(EXGANTTLib::Unchecked,1);
spGantt1->PutCheckImage(EXGANTTLib::Checked,2);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Check")))->PutDef(EXGANTTLib::exCellHasCheckBox,VARIANT_TRUE);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("Check 1");
	var_Items->PutCellState(var_Items->AddItem("Check 2"),long(0),1);
93. How do I use my own icons for my radio buttons
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spGantt1->PutRadioImage(0,1);
spGantt1->PutRadioImage(1,2);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Radio")))->PutDef(EXGANTTLib::exCellHasRadioButton,VARIANT_TRUE);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("Radio 1");
	var_Items->PutCellState(var_Items->AddItem("Radio 2"),long(0),1);
	var_Items->AddItem("Radio 3");
94. How do I change the control's background color
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutBackColor(13158600);
95. How do I change the control's foreground color
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutForeColor(7895160);
spGantt1->GetColumns()->Add(L"Column");
spGantt1->GetItems()->AddItem("item");
96. How do I change the control's background / foreground color on the locked area
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutCountLockedColumns(1);
spGantt1->PutForeColorLock(15790320);
spGantt1->PutBackColorLock(8421504);
spGantt1->PutColumnAutoResize(VARIANT_FALSE);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Locked")))->PutWidth(128);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Un-Locked 1")))->PutWidth(128);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Un-Locked 2")))->PutWidth(128);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Un-Locked 3")))->PutWidth(128);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellCaption(var_Items->AddItem("locked"),long(1),"unlocked");
97. How do lock / fix some columns to the control, so I can see them all the time, event if I scroll the columns
C++
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExGantt.dll"
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutCountLockedColumns(1);
spGantt1->PutBackColorLock(15790320);
spGantt1->PutColumnAutoResize(VARIANT_FALSE);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Locked")))->PutWidth(128);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Un-Locked 1")))->PutWidth(128);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Un-Locked 2")))->PutWidth(128);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Un-Locked 3")))->PutWidth(128);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellCaption(var_Items->AddItem("locked"),long(1),"unlocked");