325
Clear Undo/Redo queue (method 2)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
long c = spSchedule1->GetUndoRedoQueueLength();
spSchedule1->PutUndoRedoQueueLength(0);
spSchedule1->PutUndoRedoQueueLength(c);
OutputDebugStringW( spSchedule1->GetUndoListAction(vtMissing,vtMissing) );
spSchedule1->EndUpdate();

324
Clear Undo/Redo queue (method 1)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
OutputDebugStringW( spSchedule1->GetUndoListAction(vtMissing,vtMissing) );
spSchedule1->EndUpdate();

323
Removes Redo operations

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
spSchedule1->Undo();
spSchedule1->RedoRemoveAction(long(13),vtMissing);
OutputDebugStringW( spSchedule1->GetRedoListAction(vtMissing,vtMissing) );
spSchedule1->EndUpdate();

322
Removes Undo operations

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
spSchedule1->UndoRemoveAction(long(13),vtMissing);
OutputDebugStringW( spSchedule1->GetUndoListAction(vtMissing,vtMissing) );
spSchedule1->EndUpdate();

321
Record the UI operations as a block of undo/redo operations

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->StartBlockUndoRedo();
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
spSchedule1->EndBlockUndoRedo();
OutputDebugStringW( spSchedule1->GetUndoListAction(vtMissing,vtMissing) );
spSchedule1->EndUpdate();

320
Groups the next to current Undo/Redo Actions in a single block

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
spSchedule1->GroupUndoRedoActions(2);
OutputDebugStringW( spSchedule1->GetUndoListAction(vtMissing,vtMissing) );
spSchedule1->EndUpdate();

319
Limits the number of entries within the Undo/Redo queue

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->PutUndoRedoQueueLength(1);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
OutputDebugStringW( spSchedule1->GetUndoListAction(vtMissing,vtMissing) );
spSchedule1->EndUpdate();

318
Lists the Redo actions that can be performed on the control

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
spSchedule1->Undo();
OutputDebugStringW( spSchedule1->GetRedoListAction(vtMissing,vtMissing) );
spSchedule1->EndUpdate();

317
Lists the Undo actions that can be performed on the control

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
OutputDebugStringW( spSchedule1->GetUndoListAction(vtMissing,vtMissing) );
spSchedule1->EndUpdate();

316
Checks whether the Undo operation is possible

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
spSchedule1->Undo();
OutputDebugStringW( L"CanRedo" );
OutputDebugStringW( _bstr_t(spSchedule1->GetCanRedo()) );
spSchedule1->EndUpdate();

315
Call Redo by code

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
spSchedule1->Undo();
spSchedule1->Redo();
spSchedule1->EndUpdate();

314
Checks whether the Undo operation is possible

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
OutputDebugStringW( L"CanUndo" );
OutputDebugStringW( _bstr_t(spSchedule1->GetCanUndo()) );
spSchedule1->EndUpdate();

313
Call Undo by code

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
spSchedule1->Undo();
spSchedule1->EndUpdate();

312
Save the calendar-event's properties for Undo/Redo operations, by code

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->GetEvents()->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
spSchedule1->StartBlockUndoRedo();
EXSCHEDULELib::IEventPtr var_Event = spSchedule1->GetEvents()->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
	long h = var_Event->GetStartUpdateEvent();
	var_Event->PutBodyBackColor(RGB(0,0,1));
	var_Event->PutBodyForeColor(RGB(255,255,255));
	var_Event->PutStatusColor(RGB(255,0,0));
	var_Event->EndUpdateEvent(h);
spSchedule1->EndBlockUndoRedo();
spSchedule1->EndUpdate();

311
No color is restored for the calendar-event when Undo/Redo operation is performed

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->GetEvents()->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,11,30,00).operator DATE());
spSchedule1->StartBlockUndoRedo();
EXSCHEDULELib::IEventPtr var_Event = spSchedule1->GetEvents()->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
	long h = var_Event->GetStartUpdateEvent();
	var_Event->PutBodyBackColor(RGB(0,0,1));
	var_Event->PutBodyForeColor(RGB(255,255,255));
	var_Event->PutStatusColor(RGB(255,0,0));
	var_Event->EndUpdateEvent(h);
spSchedule1->EndBlockUndoRedo();
spSchedule1->EndUpdate();

310
How can I ensure that a specified calendar-event fits the control's visible area
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IPatternPtr var_Pattern = var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE())->GetBodyPattern();
		var_Pattern->PutType(EXSCHEDULELib::exPatternBDiagonal);
		var_Pattern->PutColor(RGB(224,224,224));
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE())->EnsureVisible();

309
LayoutEndChanging(exUndo), LayoutEndChanging(exRedo) or LayoutEndChanging(exUndoRedoUpdate) notifiy your application once a Undo/Redo operation is executed (CTRL+Z, CTRL+Y) or updated

// LayoutEndChanging event - Notifies your application once the control's layout has been changed.
void OnLayoutEndChangingSchedule1(long   Operation)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'
		#import <ExSchedule.dll>
		using namespace EXSCHEDULELib;
	*/
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"LayoutEndChanging" );
	OutputDebugStringW( L"Operation" );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
spSchedule1->EndUpdate();

308
Turn on the Undo/Redo feature

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowUndoRedo(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
spSchedule1->EndUpdate();

307
How can I make the header (date/group) always visible, so it stays on the top while the user scrolls the chart

// LayoutEndChanging event - Notifies your application once the control's layout has been changed.
void OnLayoutEndChangingSchedule1(long   Operation)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'
		#import <ExSchedule.dll>
		using namespace EXSCHEDULELib;
	*/
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Operation" );
	spSchedule1->PutDayViewHeight(2016);
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelectDate(COleDateTime(2012,5,20,0,00,00).operator DATE(),VARIANT_TRUE);
	var_Calendar->Select(EXSCHEDULELib::exSelectWeek);
spSchedule1->PutScrollBars(EXSCHEDULELib::exVertical);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewSingleRowLockHeader);
spSchedule1->PutDayViewHeight(2016);
spSchedule1->GetTimeScales()->GetItem(long(0))->PutMinorTimeRuler(L"00:10");
spSchedule1->PutDayStartTime(L"00:00");
spSchedule1->PutDayEndTime(L"24:00");
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);
spSchedule1->PutApplyGroupingColors(VARIANT_FALSE);
EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups();
	EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"Group 1");
		var_Group->PutVisible(VARIANT_TRUE);
		var_Group->PutEventBackColor(RGB(128,128,128));
		var_Group->PutTitle(L"1'st Group");
	EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"Group 2");
		var_Group1->PutVisible(VARIANT_TRUE);
		var_Group1->PutEventBackColor(RGB(255,0,0));
		var_Group1->PutTitle(L"2'nd Group");
spSchedule1->PutDefaultEventLongLabel(L"<%=%256%><br>Group's Caption: <b><%=%262%></b><br>Group's Title: <b><%=%263%></b>");
spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,1,00,00).operator DATE(),COleDateTime(2012,5,24,2,00,00).operator DATE())->PutGroupID(1);
	var_Events->Add(COleDateTime(2012,5,24,1,45,00).operator DATE(),COleDateTime(2012,5,24,2,30,00).operator DATE())->PutGroupID(2);
	var_Events->Add(COleDateTime(2012,5,24,2,30,00).operator DATE(),COleDateTime(2012,5,24,4,30,00).operator DATE())->PutGroupID(1);
spSchedule1->EndUpdate();

306
It appears that Width property of the Group does not what. What am I doing wrong
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups();
	EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"Group 1");
		var_Group->PutTitle(L"First");
		var_Group->PutVisible(VARIANT_TRUE);
	EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"Group 2");
		var_Group1->PutTitle(L"Second");
		var_Group1->PutVisible(VARIANT_TRUE);
	EXSCHEDULELib::IGroupPtr var_Group2 = var_Groups->Add(3,L"Group 3");
		var_Group2->PutTitle(L"Third");
		var_Group2->PutVisible(VARIANT_TRUE);
spSchedule1->PutDayViewWidth(144);
spSchedule1->GetGroups()->GetItem(long(1))->PutWidth(48);
spSchedule1->GetGroups()->GetItem(long(2))->PutWidth(48);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE())->PutGroupID(1);
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE())->PutGroupID(2);
spSchedule1->EndUpdate();

305
ImageSize property on 32 (specifies the size of control' icons/images/check-boxes/radio-buttons)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->PutImageSize(32);
spSchedule1->GetFont()->PutSize(_variant_t(long(16)));
spSchedule1->GetEventsFont()->PutSize(_variant_t(long(16)));
spSchedule1->GetTimeScaleFont()->PutSize(_variant_t(long(16)));
spSchedule1->GetTimeScales()->GetItem(long(0))->PutWidth(128);
spSchedule1->Images(_bstr_t("gBJJgBAIDAAEg4AEEKAD/hz/EMNh8TIRNGwAjEZAEXjAojKAjMLjABhkaABAk0plUrlktl0vmExmUzmk1m03nE5nU7nk9miAoE+oVDolFo1HpFJpU5h8Sf9OqFNqUOq") +
"NUqdPq9VrFWrlbr1QpdhAFAkFis1ntFptVrtkrpszrNvmVxqk3uVtm1kmF3sdBvF/wGBmV+j9BYGHwWJulfxdax2NyFdx2JlV6l9Nw7AAGZymdz2Cy2GxErvWcz9ivlw" +
"yV21cuxugwktzGIzmvwtl0+53U5y0a0Wazmmyu/3dCyOMyXHx/J5nIr9q3uyqnBxFN3G46ma4vb7mD2Ng4nZze00fDkHC7t7us2rOX5tguetpHRlmz4HVqnXk1PjHO+C" +
"MPo9MBMC+j2vC8j7wS8cFNI4kBo05UIvfCT/NsnsApU+0Fqg/T+oy/kPxC0sEQfErKQK96+w28UWRI8UGvO8sTLS9r2PWmsMJTDTask3CsIbIEQRA3shOXEEAO/GclJ9" +
"FEKrrA8FRbKMXRIlb0JxCkjS1LMswhCcvuel0cv26cSMa8Ufx+2sQwhEUoSXOCjSbLcnxjKc7sdKUVyq28NtVI71P9P7JxtQEapjQ6fzfM8zPfNE2PhIsLL63E40slk5" +
"y7N89LcyU9SvMb3SdUc6VJLj5VLVLfO/PS9KzNFHUa/0XyBD0dxlS9cxhMlTRSoNXypPErWDPyfNS+MwprRNO0FD8wVVZ1AI08URwVRjtJ1WCn21QkkUrXVLVPQS/XIk" +
"FgTxT9iONZ9xVTdq+L1eKg3kkF6Upe68XtfV51/MtrVjBlwYFL1ev8y1/P6/lyzzYl02wntj0RVFmS1Qa+M5as93QxEUW9e993rfmQ2+vy65M/mL1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qRmt4AAPrTroRofBGADkqr6Rmu4D7CEaHARiwpJrEEZsXXwlVjyMWRsaRqwdkLGNBABZmytmyMnaINZqyVpLR2ftKAAAdd6h2osbaskdiq4EZtgSmyNcbVW" +
"RJNXe3AA7REar3b0stlAAXBtoRmvJGLjEYAHUWsFcwCD/rnaop9aEICMAPdK5hT6xpeuzdOtAgKuJeGfdq6ggEbkTvAP+p9UCHXrvKkcgIA==");
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE())->PutPictures(L"1/2");
	var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE())->PutPictures(L"1,2");
spSchedule1->EndUpdate();

304
ImageSize property on 16 (default) (specifies the size of control' icons)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->PutImageSize(16);
spSchedule1->Images(_bstr_t("gBJJgBAIDAAEg4ACEKAD/hz/EMNh8TIRNGwAjEZAEXjAojJAjMLjABAAgjUYkUnlUrlktl0vmExmUzmk1m03nE5nU7nkrQCAntBoVDolFo1HoM/ADAplLptImdMYFOq") +
"dSqlXq1QrVbrlGpVWsFNrNdnNjsk7pQAtNroFnt0sh8Yr9iulTuNxs1Eu8OiT/vsnsNVutXlk/oGGtVKxGLxWNtsZtN8iUYuNvy0Zvd+xNYwdwvl4p870GCqc8vOeuVt" +
"tmp1knyOayWVy+WzN/ze1wOElenm+12WUz/Bv2/3UyyWrzeutux2GSyGP2dQ33C1ur3GD3M4zUNzHdlWjq/E3nGzVpjWv4HA7fRy/Tv2IrN8rPW6nZ3ve7mUlfu20Z8a" +
"cvQyb+vY9jasYoDwMm+LytVBDqKG3z8O3Cb8P+mkAuY9cCQ2uL4KaxDKvkp8RNLEjqugnrwQo/UWPzFyeQw5sNLZFENrI4kOqU66pw8uzmOKvTqNqjULJvGL1JO48GtT" +
"GsbLdEL3scxLlyiw8dQeoUVxdLTtyKmUjwGlslRPJsnK1HbAKbKCrsQo8uQk/CeP44iaR/ATnTNPLvyxPU+z9P9AUDQVBowiofJXQ6Oo+kKMpIkjztE4TKn4P6JowfgP" +
"nwD5/nAjB8AOeAPo0eAA1IAFH07UhAIMpYAVIYFHqBUhwVjV1S1EtQAHxW65V0AZwAeuQAnwB5gAPYViEDVhwAHTQBkCjB4gOhwDmCyhH0sACAg==");
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE())->PutPictures(L"1/2");
	var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE())->PutPictures(L"1,2");
spSchedule1->EndUpdate();

303
Is it possible to show a different background color for alternate days

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleDayHeaderBackColor,RGB(0,0,0));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleDayHeaderForeColor,RGB(0,0,0));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleDayBackColorAlternate,RGB(240,240,240));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleDayForeColorAlternate,RGB(128,128,128));
spSchedule1->GetCalendar()->Select(EXSCHEDULELib::exSelectWeek);

302
How can I select all events

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE());
spSchedule1->SelectAll();
spSchedule1->EndUpdate();

301
How can I unselect all events
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE());
spSchedule1->SelectAll();
spSchedule1->PutSelection("");
spSchedule1->EndUpdate();

300
How do I immediately select a newly added event

// AddEvent event - Notifies your application once the a new event is added.
void OnAddEventSchedule1(LPDISPATCH   Ev)
{
	// Ev.Selected = True
}


299
I would like to know if this allows me to setup a number of room(column). Let's say, i need to go up to 10 rooms is it possible. Also, the possibility to have a complete week of that 10 rooms.

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);
spSchedule1->PutBodyEventForeColor(RGB(255,255,255));
spSchedule1->PutDayStartTime(L"09:00");
spSchedule1->PutDayEndTime(L"14:00");
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelectDate(COleDateTime(2012,5,24,0,00,00).operator DATE(),VARIANT_TRUE);
	var_Calendar->Select(EXSCHEDULELib::exSelectWeek);
spSchedule1->PutScrollBars(EXSCHEDULELib::exNoScroll);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewSingleRow);
EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups();
	EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"1");
		var_Group->PutVisible(VARIANT_TRUE);
		var_Group->PutEventBackColor(RGB(255,0,0));
		var_Group->PutHeaderBackColor(var_Group->GetEventBackColor());
		var_Group->PutHeaderForeColor(RGB(255,255,255));
	EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"2");
		var_Group1->PutVisible(VARIANT_TRUE);
		var_Group1->PutEventBackColor(RGB(204,0,0));
		var_Group1->PutHeaderBackColor(var_Group1->GetEventBackColor());
		var_Group1->PutHeaderForeColor(RGB(255,255,255));
	EXSCHEDULELib::IGroupPtr var_Group2 = var_Groups->Add(3,L"3");
		var_Group2->PutVisible(VARIANT_TRUE);
		var_Group2->PutEventBackColor(RGB(153,0,0));
		var_Group2->PutHeaderBackColor(var_Group2->GetEventBackColor());
		var_Group2->PutHeaderForeColor(RGB(255,255,255));
	EXSCHEDULELib::IGroupPtr var_Group3 = var_Groups->Add(4,L"4");
		var_Group3->PutVisible(VARIANT_TRUE);
		var_Group3->PutEventBackColor(RGB(102,0,0));
		var_Group3->PutHeaderBackColor(var_Group3->GetEventBackColor());
		var_Group3->PutHeaderForeColor(RGB(255,255,255));
	EXSCHEDULELib::IGroupPtr var_Group4 = var_Groups->Add(5,L"5");
		var_Group4->PutVisible(VARIANT_TRUE);
		var_Group4->PutEventBackColor(RGB(51,0,0));
		var_Group4->PutHeaderBackColor(var_Group4->GetEventBackColor());
		var_Group4->PutHeaderForeColor(RGB(255,255,255));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->PutGroupID(1);
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutGroupID(2);
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE())->PutGroupID(3);
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutGroupID(4);
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutGroupID(5);
spSchedule1->EndUpdate();

298
I would like to know if this allows me to setup a number of room(column). Let's say, i need to go up to 10 rooms is it possible

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);
spSchedule1->PutBodyEventForeColor(RGB(255,255,255));
spSchedule1->PutDayStartTime(L"09:00");
spSchedule1->PutDayEndTime(L"14:00");
EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups();
	EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"Room1");
		var_Group->PutVisible(VARIANT_TRUE);
		var_Group->PutEventBackColor(RGB(255,0,0));
		var_Group->PutHeaderBackColor(var_Group->GetEventBackColor());
		var_Group->PutHeaderForeColor(RGB(255,255,255));
	EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"Room2");
		var_Group1->PutVisible(VARIANT_TRUE);
		var_Group1->PutEventBackColor(RGB(204,0,0));
		var_Group1->PutHeaderBackColor(var_Group1->GetEventBackColor());
		var_Group1->PutHeaderForeColor(RGB(255,255,255));
	EXSCHEDULELib::IGroupPtr var_Group2 = var_Groups->Add(3,L"Room3");
		var_Group2->PutVisible(VARIANT_TRUE);
		var_Group2->PutEventBackColor(RGB(153,0,0));
		var_Group2->PutHeaderBackColor(var_Group2->GetEventBackColor());
		var_Group2->PutHeaderForeColor(RGB(255,255,255));
	EXSCHEDULELib::IGroupPtr var_Group3 = var_Groups->Add(4,L"Room4");
		var_Group3->PutVisible(VARIANT_TRUE);
		var_Group3->PutEventBackColor(RGB(102,0,0));
		var_Group3->PutHeaderBackColor(var_Group3->GetEventBackColor());
		var_Group3->PutHeaderForeColor(RGB(255,255,255));
	EXSCHEDULELib::IGroupPtr var_Group4 = var_Groups->Add(5,L"Room5");
		var_Group4->PutVisible(VARIANT_TRUE);
		var_Group4->PutEventBackColor(RGB(51,0,0));
		var_Group4->PutHeaderBackColor(var_Group4->GetEventBackColor());
		var_Group4->PutHeaderForeColor(RGB(255,255,255));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->PutGroupID(1);
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutGroupID(2);
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE())->PutGroupID(3);
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutGroupID(4);
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutGroupID(5);
spSchedule1->EndUpdate();

297
Please could you let me know if it is possible to change the increment when the user scrolls the mouse wheel as its to slow by default
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutVerticalScrollWheel(3);

296
I am using the DefaultEventLongLabel property to specify the event's label. Is it possible to change the way the event's label is displayed when it is an all day event (sample 2)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
spSchedule1->PutAllowAllDayEventScroll(EXSCHEDULELib::AllDayEventScrollEnum(EXSCHEDULELib::exAllDayEventWheelScroll | EXSCHEDULELib::exAllDayEventMax4));
spSchedule1->PutDefaultEventLongLabel(_bstr_t("<%=%><%= ( %3 = 0 ? (`Group's ID:` + %4 + `<br>Group's Caption:` + %262  + `<br>Group's Title: ` + %263 + `<br>` + %256 ) : ( (") +
"`Group's ID:` + %4 + ` , ` + %256 ) replace `<br>` with `,` ) ) %>");
spSchedule1->PutDefaultEventShortLabel(_bstr_t("<%=%><%=  ( %3 = 0 ? (`Group's ID:` + %4 + `<br>Group's Caption:` + %262  + `<br>Group's Title: ` + %263 + `<br>` + %256 ) : ( ") +
"(`Group's ID:` + %4 + ` , ` + %256 ) ) replace `<br>` with `\\r\\n` ) %>");
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);
spSchedule1->PutHeaderGroupHeight(1);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups();
	EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"Group 1");
		var_Group->PutTitle(L"First");
		var_Group->PutVisible(VARIANT_TRUE);
	EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"Group 2");
		var_Group1->PutTitle(L"Second");
		var_Group1->PutVisible(VARIANT_TRUE);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE())->PutGroupID(1);
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE())->PutGroupID(2);
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2001,1,10,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE());
		var_Event->PutGroupID(1);
		var_Event->PutAllDayEvent(VARIANT_TRUE);
	EXSCHEDULELib::IEventPtr var_Event1 = var_Events->Add(COleDateTime(2001,1,10,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE());
		var_Event1->PutGroupID(2);
		var_Event1->PutAllDayEvent(VARIANT_TRUE);
	EXSCHEDULELib::IEventPtr var_Event2 = var_Events->Add(COleDateTime(2001,1,10,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE());
		var_Event2->PutGroupID(2);
		var_Event2->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->EndUpdate();

295
I am using the DefaultEventLongLabel property to specify the event's label. Is it possible to change the way the event's label is displayed when it is an all day event (sample 1)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
spSchedule1->PutDefaultEventLongLabel(_bstr_t("<%=%><%= %4 < 0  ? `<b>` + %256 + `</b> <off -4>(all)` : ( (`Group's ID:` + %4 + `<br>Group's Caption:` + %262  + `<br>Group's ") +
"Title: ` + %263 + `<br>` + %256 ) replace ( %3 ? `<br>` : ``) with `,` ) %>");
spSchedule1->PutDefaultEventShortLabel(_bstr_t("<%=%><%=  %4 < 0 ? %256 : ( %3 = 0 ? (`Group's ID:` + %4 + `<br>Group's Caption:` + %262  + `<br>Group's Title: ` + %263 + `<br") +
">` + %256 ) : ( (`Group's ID:` + %4 + ` , ` + %256 ) ) replace `<br>` with `\\r\\n` ) %>");
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);
spSchedule1->PutHeaderGroupHeight(1);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups();
	EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"Group 1");
		var_Group->PutTitle(L"First");
		var_Group->PutVisible(VARIANT_TRUE);
	EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"Group 2");
		var_Group1->PutTitle(L"Second");
		var_Group1->PutVisible(VARIANT_TRUE);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE())->PutGroupID(1);
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE())->PutGroupID(2);
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2001,1,10,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE());
		var_Event->PutGroupID(1);
		var_Event->PutAllDayEvent(VARIANT_TRUE);
	EXSCHEDULELib::IEventPtr var_Event1 = var_Events->Add(COleDateTime(2001,1,10,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE());
		var_Event1->PutGroupID(-1);
		var_Event1->PutAllDayEvent(VARIANT_TRUE);
	EXSCHEDULELib::IEventPtr var_Event2 = var_Events->Add(COleDateTime(2001,1,10,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE());
		var_Event2->PutGroupID(2);
		var_Event2->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->EndUpdate();

294
The Event.Caption does not support HTML, and so if using in DefaultEventLongLabel/DefaultEventShortLabel no HTML is applied, instead HTML tags are displayed as plain text. What can be done

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->PutDefaultEventLongLabel(L"<%=%><%=%5%><br><%=%256%>");
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,10,00,00).operator DATE())->PutCaption(L"textzeile1<br>textzeile2<br>textzeile3");
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,11,00,00).operator DATE())->PutCaption(L"textzeile1<br><fgcolor-FF0000><b>textzeile2</b></fgcolor>");
spSchedule1->EndUpdate();

293
Please could you let me know how I can remove/hide the time scale/marks from the scheduler. I am creating a month view that only requires a box for the day and no time markers required

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetTimeScales()->GetItem(long(0))->PutVisible(VARIANT_FALSE);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
	var_Calendar->Select(EXSCHEDULELib::exSelectMonth);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutShowStatus(VARIANT_FALSE);
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE());
spSchedule1->EndUpdate();

292
Is it possible to lock down the view to allow resizing of the days column but not to allow the scrolling outside of the dictated time zone

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2012,5,21,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#5/21/2012#,#5/22/2012#,#5/23/2012#,#5/24/2012#,#5/25/2012#)");
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exChangePanels | EXSCHEDULELib::exHideSplitter));
spSchedule1->PutScrollBars(EXSCHEDULELib::exVertical);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewSingleRow);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowToggleSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowExchangePanels(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMoveTimeScale(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeTimeScale(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMultiDaysEvent(VARIANT_FALSE);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleBorderSelColor,spSchedule1->GetBackground(EXSCHEDULELib::exScheduleBorderSelColorUnFocus));
spSchedule1->GetTimeScales()->GetItem(long(0))->PutMinorTimeRuler(L"00:10");
spSchedule1->PutDayStartTime(L"10:00");
spSchedule1->PutDayEndTime(L"14:00");
spSchedule1->EndUpdate();

291
I would also like to control the column view to only show 5 days at a time with a side scroll, how would I achieve this please

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,21,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value in (#5/21/2012#,#5/22/2012#,#5/23/2012#,#5/24/2012#,#5/25/2012#)");
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutScrollBars(EXSCHEDULELib::exVertical);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,23,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,21,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->EndUpdate();

290
Can I force the schedule grid to only show a single day and then to step through each day using either a custom button click or using the built in schedule calendar

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelectDate(COleDateTime(2012,5,20,0,00,00).operator DATE(),VARIANT_TRUE);
	var_Calendar->Select(EXSCHEDULELib::exSelectFocusDay);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exChangePanels | EXSCHEDULELib::exHideSplitter));
spSchedule1->PutScrollBars(EXSCHEDULELib::exNoScroll);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewSingleRow);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowToggleSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowExchangePanels(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMoveTimeScale(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeTimeScale(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMultiDaysEvent(VARIANT_FALSE);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleBorderSelColor,spSchedule1->GetBackground(EXSCHEDULELib::exScheduleBorderSelColorUnFocus));
spSchedule1->EndUpdate();

289
Can I colour the background of the schedulers grid from a time point to another EG 9:00 to 12:00. This is to show users that they can only book appointments in this time zone

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exChangePanels | EXSCHEDULELib::exHideSplitter));
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,27,0,00,00).operator DATE());
EXSCHEDULELib::IMarkZonePtr var_MarkZone = spSchedule1->GetMarkZones()->Add(L"zoneA",COleDateTime(2012,6,27,9,00,00).operator DATE(),COleDateTime(2012,6,27,11,00,00).operator DATE());
	var_MarkZone->GetPattern()->PutType(EXSCHEDULELib::exPatternEmpty);
	var_MarkZone->PutLongLabel(L"Yellow");
	var_MarkZone->PutBackColor(RGB(255,255,0));
EXSCHEDULELib::IMarkZonePtr var_MarkZone1 = spSchedule1->GetMarkZones()->Add(L"zoneB",COleDateTime(2012,6,27,12,00,00).operator DATE(),COleDateTime(2012,6,27,13,30,00).operator DATE());
	var_MarkZone1->GetPattern()->PutType(EXSCHEDULELib::exPatternEmpty);
	var_MarkZone1->PutLongLabel(L"Green");
	var_MarkZone1->PutBackColor(RGB(0,255,0));
spSchedule1->EndUpdate();

288
My programming language has the following format for date 2012-05-24-13.04.06.810000 every other format returns a compiler error. Is there a possibility to use a string for the date

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(spSchedule1->ExecuteTemplate(L"#5/24/2012#"));
EXSCHEDULELib::IMarkTimesPtr var_MarkTimes = spSchedule1->GetMarkTimes();
	EXSCHEDULELib::IMarkTimePtr var_MarkTime = var_MarkTimes->Add(L"timer",spSchedule1->ExecuteTemplate(L"#5/24/2012 11:35#"));
		var_MarkTime->PutMovable(VARIANT_TRUE);
		var_MarkTime->PutLineColor(RGB(0,0,255));
		var_MarkTime->PutStatusEventBackColor(RGB(0,0,255));
		var_MarkTime->PutTimeScaleLineColor(RGB(0,0,255));
		var_MarkTime->PutTimeScaleLabel(L"<fgcolor=0000FF><b><%hh%>:<%nn%> <%AM/PM%>");
spSchedule1->EndUpdate();

287
How do I display a picture with transparency

// PictureClick event - Occurs when the user clicks a picture within an event ( Event.Pictures/ExtraPictures ).
void OnPictureClickSchedule1(LPCTSTR   Key)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'
		#import <ExSchedule.dll>
		using namespace EXSCHEDULELib;
	*/
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Key" );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutShowSelectEvent(VARIANT_FALSE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
EXSCHEDULELib::IExPicturesPtr var_ExPictures = spSchedule1->GetPictures();
	var_ExPictures->Add(L"pic1",_bstr_t("gCJKBOI4NBQaBQAhQNJJIIhShQAEEREAIA0ROZ6PT0hQKYZpIZDKBJkIgKByN5mNJsMsKPABVqXBI4KjrD7HL6GWKPJKiCIhMiySidKxbOzZZJWMLsGL2FqyLjZMonN") +
"a2CyiZDOUqsQqUEq0ZCNISFXDIFxzZ4hUrbdrefZ/fz3ZgzZ75Tz3XjvHZnZznPieb55AKgAqmRyOOzEhR7XirWaWQQMTa+QIhDbZOZAAoYUCPDAQG7FXI4JRrNCoIRd" +
"PyyFr0AYifDUKZ+PCufK4RReALLUbtdBHSrGTCCNKqT4MbRqUxxQx+CAAEQ2VCBbxqGaLYDZNgzFbCbLDarRCrqMYMM6cWqpHKUDqhZjnVijEoLcp0FCjVg2OYhTjN/Q" +
"Wk4bo4iseBsA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ROEQrhCGAgkBA");
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->PutPictures(L"pic1");
spSchedule1->EndUpdate();

286
I need a border around each event/item on scheduler. Can you direct me to propery to use (to all)

// AddEvent event - Notifies your application once the a new event is added.
void OnAddEventSchedule1(LPDISPATCH   Ev)
{
	// Ev.BodyBackgroundExt = "[frame=RGB(0,0,0),framethick]"
}

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
spSchedule1->PutStatusEventSize(0);
spSchedule1->PutDefaultEventPadding(EXSCHEDULELib::exPaddingAll,4);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,10,12,30,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE());

285
I need a border around each event/item on scheduler. Can you direct me to propery to use (distinct)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
spSchedule1->PutStatusEventSize(0);
spSchedule1->PutDefaultEventPadding(EXSCHEDULELib::exPaddingAll,4);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE())->PutBodyBackgroundExt(L"[frame=RGB(0,0,0),framethick]");
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE())->PutBodyBackgroundExt(L"[frame=RGB(128,128,128),framethick]");
	var_Events->Add(COleDateTime(2001,1,10,12,30,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE())->PutBodyBackgroundExt(L"[frame=RGB(0,0,0),framethick]");

284
How can I change/specify the caption of the groups, when the user clicks the drop down button

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);
EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups();
	EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"Group A");
		var_Group->PutCaption(L"<fgcolor=808080><c><b>Group A</b><c><br><font ;6>France, Romania, Albania and Switzerland");
		var_Group->PutVisible(VARIANT_TRUE);
		var_Group->PutEventBackColor(RGB(128,128,128));
	EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"Group B");
		var_Group1->PutCaption(L"<fgcolor=FF0000><c><b>Group B</b><c><br><font ;6>England, Russia, Wales and Slovakia");
		var_Group1->PutVisible(VARIANT_TRUE);
		var_Group1->PutEventBackColor(RGB(255,0,0));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->PutGroupID(1);
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutGroupID(2);
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE())->PutGroupID(1);
spSchedule1->EndUpdate();

283
Is it possible to hide the group header, but still display the groups/captions

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutHTMLPicture(L"pic1",_bstr_t("gCJKBOI4NBQaBQAhQNJJIIhShQAEEREAIA0ROZ6PT0hQKYZpIZDKBJkIgKByN5mNJsMsKPABVqXBI4KjrD7HL6GWKPJKiCIhMiySidKxbOzZZJWMLsGL2FqyLjZMonN") +
"a2CyiZDOUqsQqUEq0ZCNISFXDIFxzZ4hUrbdrefZ/fz3ZgzZ75Tz3XjvHZnZznPieb55AKgAqmRyOOzEhR7XirWaWQQMTa+QIhDbZOZAAoYUCPDAQG7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uOA4zjnB2qzk2NzeEy4YkGwlQIikAE8hGM805rEEAmAKmUtQEkHuO9yj2u1GofEONxMVR8SiSulw6EMjEESDOTgGgEQi2MjjU5mI5l4pSWl0s1e+vUCXC" +
"+iGQtjEIwOCXi+xqAGowVeoQU+jgeX63GgsHeq1CoTREEpAkL0hgNAA9AoFUQTRBYLzAJgIwAEQIhZAAZjNIEUAXMw+gUBQPCNHE0YFBsKgXC8Xg8DsRySGwhQFAWFQY" +
"IE0gAB4pjjFcrhcPk4ziMUiy/AMzQwAIZwUPsxwgGsAg0AUCiCOgkQyhEAhFAAzAgCs6h9BYjAqCkgjiEQDA4BEhhuF01SdLoqjaGARwjIY4APF44QEC4JBwNwhDOHED" +
"wRAYDwVF49QxFk9hBA4KQnPMh4BDw9hIEkKDFFgoBGL4IQiEYGS+OQZBdKYLDAIsSwLMM9xkMo+y4OsRRICEkAEBgqShCkEArOMeBBEwTCiCcPgiDoNQpE48A9P4owtJ" +
"0CxoMEsACFkQjIM0zQVCk8hRH4LT4LcoT2FkZAmBMeCyAA8QYIASQJBEnSWIg/BtMw0SpOkUDEBsayZAAEADK0GTrAYICzIsuTMLgkBNH45gnOU8QAEgAT5JcFCSCIGg" +
"TBkFiNJkHRzLE9g3CA5QJAk0CGBF7gAywSRFE4RCuEIYCCQE=");
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);
EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups();
	EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"<c><b>Group</b><br><c><img>pic1</img>");
		var_Group->PutVisible(VARIANT_TRUE);
		var_Group->PutEventBackColor(RGB(128,128,128));
	EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"<c><b>Group</b><br><c><img>pic2</img>");
		var_Group1->PutVisible(VARIANT_TRUE);
		var_Group1->PutEventBackColor(RGB(255,0,0));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->PutGroupID(1);
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutGroupID(2);
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE())->PutGroupID(1);
spSchedule1->PutHeaderGroupHeight(-1);
spSchedule1->EndUpdate();

282
When using the CopyTo method to print a range of dates the printed page is not showing the timescale, is there a way to make it appear (as is, without calendar, multiple-selection)
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exChangePanels | EXSCHEDULELib::exHideSplitter));
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection("#1/1/2016#");
	var_Calendar->PutSelection("(int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday(#1/7/2016#))/7))");
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2016,1,10,8,30,00).operator DATE(),COleDateTime(2016,1,10,14,30,00).operator DATE());
	var_Events->Add(COleDateTime(2016,1,11,9,30,00).operator DATE(),COleDateTime(2016,1,11,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2016,1,15,10,30,00).operator DATE(),COleDateTime(2016,1,15,11,30,00).operator DATE());
_variant_t s = spSchedule1->GetCalendar()->GetSelection();
spSchedule1->GetCalendar()->PutSelection("0");
_variant_t var_CopyTo = spSchedule1->GetCopyTo(L"c:/temp/test.png");
OutputDebugStringW( L"Look for c:/temp/test.png file" );
spSchedule1->GetCalendar()->PutSelection(s);

281
When using the CopyTo method to print a range of dates the printed page is not showing the timescale, is there a way to make it appear (as is, without calendar)
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exChangePanels | EXSCHEDULELib::exHideSplitter));
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2012,1,1,0,00,00).operator DATE());
	var_Calendar->PutSelectDate(COleDateTime(2012,1,1,0,00,00).operator DATE(),VARIANT_FALSE);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,1,1,8,30,00).operator DATE(),COleDateTime(2012,1,1,9,30,00).operator DATE());
	var_Events->Add(COleDateTime(2012,1,1,8,35,00).operator DATE(),COleDateTime(2012,1,1,9,35,00).operator DATE());
	var_Events->Add(COleDateTime(2012,1,1,10,30,00).operator DATE(),COleDateTime(2012,1,1,12,30,00).operator DATE());
_variant_t var_CopyTo = spSchedule1->GetCopyTo(L"c:/temp/test.png");
OutputDebugStringW( L"Look for c:/temp/test.png file" );

280
When using the CopyTo method to print a range of dates the printed page is not showing the timescale, is there a way to make it appear (as is, with calendar)
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2012,1,1,0,00,00).operator DATE());
	var_Calendar->PutSelectDate(COleDateTime(2012,1,1,0,00,00).operator DATE(),VARIANT_FALSE);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,1,1,8,30,00).operator DATE(),COleDateTime(2012,1,1,9,30,00).operator DATE());
	var_Events->Add(COleDateTime(2012,1,1,8,35,00).operator DATE(),COleDateTime(2012,1,1,9,35,00).operator DATE());
	var_Events->Add(COleDateTime(2012,1,1,10,30,00).operator DATE(),COleDateTime(2012,1,1,12,30,00).operator DATE());
_variant_t var_CopyTo = spSchedule1->GetCopyTo(L"c:/temp/test.png");
OutputDebugStringW( L"Look for c:/temp/test.png file" );

279
I've seen that all-day header can be limited up to 4, 8 or 12 events. Can I change that limit, for instance, 3 events only

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowSelectCreateEvent(EXSCHEDULELib::exHighlightCreateEvent);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,21,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value >= #5/20/2012# and value <= #5/26/2012#");
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutAllowAllDayEventScroll(EXSCHEDULELib::AllDayEventScrollEnum(0x23 | EXSCHEDULELib::exAllDayEventWheelScroll | EXSCHEDULELib::exAllDayEventNoMax));
spSchedule1->PutBodyEventBackColor(RGB(128,128,128));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleAllDayEventScrollBackColor,RGB(220,220,220));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,21,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,23,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,23,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,24,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->EndUpdate();

278
Is it possible to highlight the newly created event ( runtime creation )
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutAllowSelectCreateEvent(EXSCHEDULELib::exHighlightCreateEvent);

277
Is it possible to select the newly created event ( runtime creation )
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutAllowSelectCreateEvent(EXSCHEDULELib::exSelectCreateEvent);

276
I have noticed that the all-day header change its background, if has scrolling events. Is it possible to change that (ebn)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAAChABRUIQAAYAQGKIaBoAKBQAGaAoDDQMQ3QwAAwjSLEEwsACEIrjKCRShyCYZRrGQBQTCIZBqEqSZLiEZRQCWIAxATGchwHIEQgND6cIDmMAHf") +
"j2PI+RZKMoRZJUExZFyERhASQZZoyN40UzOc6vfL9KRDEAEIRKAyTDLQdRyGSMMgEVBJBCbMiNBqhESIJo+GI4BhFYSUZalGSnO6gIBAgIA==");
spSchedule1->PutAllowSelectCreateEvent(EXSCHEDULELib::exHighlightCreateEvent);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,21,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value in (#5/21/2012#,#5/22/2012#,#5/23/2012#,#5/24/2012#,#5/25/2012#)");
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutAllowAllDayEventScroll(EXSCHEDULELib::AllDayEventScrollEnum(EXSCHEDULELib::exAllDayEventWheelScroll | EXSCHEDULELib::exAllDayEventMax4));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleAllDayEventScrollBackColor,0x1000000);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,23,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,21,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,23,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,24,0,00,00).operator DATE(),COleDateTime(2012,5,26,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->EndUpdate();

275
I have noticed that the all-day header change its background, if has scrolling events. Is it possible to change that (solid)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowSelectCreateEvent(EXSCHEDULELib::exHighlightCreateEvent);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,21,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value in (#5/21/2012#,#5/22/2012#,#5/23/2012#,#5/24/2012#,#5/25/2012#)");
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutAllowAllDayEventScroll(EXSCHEDULELib::AllDayEventScrollEnum(EXSCHEDULELib::exAllDayEventWheelScroll | EXSCHEDULELib::exAllDayEventMax4));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleAllDayEventScrollBackColor,RGB(220,220,220));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,23,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,21,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,23,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,24,0,00,00).operator DATE(),COleDateTime(2012,5,26,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->EndUpdate();

274
I have noticed that the all-day header change its background, if has scrolling events. Is it possible to remove that

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowSelectCreateEvent(EXSCHEDULELib::exHighlightCreateEvent);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,21,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value in (#5/21/2012#,#5/22/2012#,#5/23/2012#,#5/24/2012#,#5/25/2012#)");
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutAllowAllDayEventScroll(EXSCHEDULELib::AllDayEventScrollEnum(EXSCHEDULELib::exAllDayEventWheelScroll | EXSCHEDULELib::exAllDayEventMax4));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleAllDayEventScrollBackColor,RGB(0,0,0));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,23,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,21,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,23,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,24,0,00,00).operator DATE(),COleDateTime(2012,5,26,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->EndUpdate();

273
The user scrolls through the all-day events, when mouse wheel is rotated. Can I disable that
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowSelectCreateEvent(EXSCHEDULELib::exHighlightCreateEvent);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,21,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value in (#5/21/2012#,#5/22/2012#,#5/23/2012#,#5/24/2012#,#5/25/2012#)");
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutAllowAllDayEventScroll(EXSCHEDULELib::AllDayEventScrollEnum(EXSCHEDULELib::exAllDayEventScroll | EXSCHEDULELib::exAllDayEventMax4));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,23,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,21,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,23,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,24,0,00,00).operator DATE(),COleDateTime(2012,5,26,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->EndUpdate();

272
Is it possible to specify the number of all-day events to be visible

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowSelectCreateEvent(EXSCHEDULELib::exHighlightCreateEvent);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,21,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value in (#5/21/2012#,#5/22/2012#,#5/23/2012#,#5/24/2012#,#5/25/2012#)");
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutAllowAllDayEventScroll(EXSCHEDULELib::AllDayEventScrollEnum(EXSCHEDULELib::exAllDayEventWheelScroll | EXSCHEDULELib::exAllDayEventMax4));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,23,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,21,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,23,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,24,0,00,00).operator DATE(),COleDateTime(2012,5,26,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->EndUpdate();

271
How do I disable scrolling the all-day header
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowSelectCreateEvent(EXSCHEDULELib::exHighlightCreateEvent);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,21,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value in (#5/21/2012#,#5/22/2012#,#5/23/2012#,#5/24/2012#,#5/25/2012#)");
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutAllowAllDayEventScroll(EXSCHEDULELib::exAllDayEventNoMin);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,23,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,21,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,22,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,23,0,00,00).operator DATE(),COleDateTime(2012,5,25,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,24,0,00,00).operator DATE(),COleDateTime(2012,5,26,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->EndUpdate();

270
How can I display the current week only, when the user selects the date in the calendar panel

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exDisableSplitter | EXSCHEDULELib::exResizePanelRight));
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutOnSelectDate(EXSCHEDULELib::exEnsureVisibleDate);
	var_Calendar->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
	var_Calendar->PutSingleSel(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutFirstWeekDay(EXSCHEDULELib::exMonday);
spSchedule1->PutScrollBars(EXSCHEDULELib::exNoScroll);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutAllowResizeSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowToggleSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleBorderMonthColor,spSchedule1->GetBackground(EXSCHEDULELib::exScheduleBorderDateColor));
spSchedule1->GetTimeScales()->GetItem(long(0))->PutAllowResize(VARIANT_FALSE);
spSchedule1->PutDayViewWidth(0);
spSchedule1->EndUpdate();

269
How do I capture the control and save it as PDF (Method 2)
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2001,6,1,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#6/11/2001#,#6/12/2001#)");
spSchedule1->PutDayViewWidth(512);
spSchedule1->PutDayViewHeight(512);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,6,11,10,00,00).operator DATE(),COleDateTime(2001,6,11,13,00,00).operator DATE());
	var_Events->Add(COleDateTime(2001,6,12,10,00,00).operator DATE(),COleDateTime(2001,6,12,13,00,00).operator DATE());
_variant_t var_CopyTo = spSchedule1->GetCopyTo(L"C:/Temp/test.pdf");
OutputDebugStringW( L"Look For: C:/Temp/test.pdf file" );

268
How do I capture the control and save it as PDF (Method 1)
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2001,6,1,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#6/11/2001#,#6/12/2001#)");
spSchedule1->PutDayViewWidth(512);
spSchedule1->PutDayViewHeight(512);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,6,11,10,00,00).operator DATE(),COleDateTime(2001,6,11,13,00,00).operator DATE());
	var_Events->Add(COleDateTime(2001,6,12,10,00,00).operator DATE(),COleDateTime(2001,6,12,13,00,00).operator DATE());
/*
	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->PutOptions("FitToPage=On");
	var_Print->PutPrintExt(((EXSCHEDULELib::ISchedulePtr)(spSchedule1)));
	var_Print->CopyTo(L"C:/Temp/test.pdf");
	OutputDebugStringW( L"Look For: C:/Temp/test.pdf file" );

267
How do I capture the control and save it as an image (JPG or BMP) (Method 2)
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2001,6,1,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#6/11/2001#,#6/12/2001#)");
spSchedule1->PutDayViewWidth(512);
spSchedule1->PutDayViewHeight(512);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,6,11,10,00,00).operator DATE(),COleDateTime(2001,6,11,13,00,00).operator DATE());
	var_Events->Add(COleDateTime(2001,6,12,10,00,00).operator DATE(),COleDateTime(2001,6,12,13,00,00).operator DATE());
_variant_t var_CopyTo = spSchedule1->GetCopyTo(L"C:/Temp/test.bmp");
_variant_t var_CopyTo1 = spSchedule1->GetCopyTo(L"C:/Temp/test.jpg");
OutputDebugStringW( L"Look For: C:/Temp/test.* file" );

266
How do I capture the control and save it as an image (JPG or BMP) (Method 1)
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2001,6,1,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#6/11/2001#,#6/12/2001#)");
spSchedule1->PutDayViewWidth(512);
spSchedule1->PutDayViewHeight(512);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,6,11,10,00,00).operator DATE(),COleDateTime(2001,6,11,13,00,00).operator DATE());
	var_Events->Add(COleDateTime(2001,6,12,10,00,00).operator DATE(),COleDateTime(2001,6,12,13,00,00).operator DATE());
/*
	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->PutOptions("FitToPage=On");
	var_Print->PutPrintExt(((EXSCHEDULELib::ISchedulePtr)(spSchedule1)));
	var_Print->CopyTo(L"C:/Temp/test.bmp");
	var_Print->CopyTo(L"C:/Temp/test.jpg");
	OutputDebugStringW( L"Look For: C:/Temp/test.* file" );

265
Recurrence: The 2nd to last weekday of the month

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,29,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,29,9,00,00).operator DATE(),COleDateTime(1997,9,29,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-2");
spSchedule1->EndUpdate();

264
Recurrence: The 3rd instance into the month of one of Tuesday, Wednesday or Thursday, for the next 3 months

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,4,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,4,9,00,00).operator DATE(),COleDateTime(1997,9,4,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;COUNT=3;BYDAY=TU,WE,TH;BYSETPOS=3");
spSchedule1->EndUpdate();

263
Recurrence: The last work day of the month

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,30,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,8,5,9,00,00).operator DATE(),COleDateTime(1997,8,5,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1");
spSchedule1->EndUpdate();

262
Recurrence: An example where the days generated makes a difference because of WKST (Sample 2)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,8,5,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,8,5,9,00,00).operator DATE(),COleDateTime(1997,8,5,14,00,00).operator DATE())->PutRepetitive(L"FREQ=WEEKLY;INTERVAL=2;COUNT=4;BYDAY=TU,SU");
spSchedule1->EndUpdate();

261
Recurrence: An example where the days generated makes a difference because of WKST (Sample 1)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,8,5,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,8,5,9,00,00).operator DATE(),COleDateTime(1997,8,5,14,00,00).operator DATE())->PutRepetitive(L"FREQ=WEEKLY;INTERVAL=2;COUNT=4;BYDAY=TU,SU");
spSchedule1->EndUpdate();

260
Recurrence: Every four years, the first Tuesday after a Monday in November, forever (U.S. Presidential Election day)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1996,11,5,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1996,11,5,9,00,00).operator DATE(),COleDateTime(1996,11,5,14,00,00).operator DATE())->PutRepetitive(L"FREQ=YEARLY;INTERVAL=4;BYMONTH=11;BYDAY=TU;BYMONTHDAY=2,3,4,5,6,7,8");
spSchedule1->EndUpdate();

259
Recurrence: The first Saturday that follows the first Sunday of the month, forever

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,13,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,13,9,00,00).operator DATE(),COleDateTime(1997,9,13,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;BYDAY=SA;BYMONTHDAY=7,8,9,10,11,12,13");
spSchedule1->EndUpdate();

258
Recurrence: Every Friday the 13th, forever

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1998,2,13,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,2,9,00,00).operator DATE(),COleDateTime(1997,9,2,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;BYDAY=FR;BYMONTHDAY=13");
spSchedule1->EndUpdate();

257
Recurrence: Every Thursday, but only during June, July, and August, forever

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,6,5,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,6,5,9,00,00).operator DATE(),COleDateTime(1997,6,5,14,00,00).operator DATE())->PutRepetitive(L"FREQ=YEARLY;BYDAY=TH;BYMONTH=6,7,8");
spSchedule1->EndUpdate();

256
Recurrence: Every Thursday in March, forever

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,3,13,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,3,13,9,00,00).operator DATE(),COleDateTime(1997,3,13,14,00,00).operator DATE())->PutRepetitive(L"FREQ=YEARLY;BYMONTH=3;BYDAY=TH");
spSchedule1->EndUpdate();

255
Recurrence: Monday of week number 20 (where the default start of the week is Monday), forever

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,5,12,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,5,12,9,00,00).operator DATE(),COleDateTime(1997,5,12,14,00,00).operator DATE())->PutRepetitive(L"FREQ=YEARLY;BYWEEKNO=20;BYDAY=MO");
spSchedule1->EndUpdate();

254
Recurrence: Every 20th Monday of the year, forever

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,5,19,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,1,1,9,00,00).operator DATE(),COleDateTime(1997,1,1,14,00,00).operator DATE())->PutRepetitive(L"FREQ=YEARLY;BYDAY=20MO");
spSchedule1->EndUpdate();

253
Recurrence: Every 3rd year on the 1st, 100th and 200th day for 10 occurrences

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,1,1,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,1,1,9,00,00).operator DATE(),COleDateTime(1997,1,1,14,00,00).operator DATE())->PutRepetitive(L"FREQ=YEARLY;INTERVAL=3;COUNT=10;BYYEARDAY=1,100,200");
spSchedule1->EndUpdate();

252
Recurrence: Every other year on January, February, and March for 10 occurrences

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,3,10,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,3,10,9,00,00).operator DATE(),COleDateTime(1997,3,10,14,00,00).operator DATE())->PutRepetitive(L"FREQ=YEARLY;INTERVAL=2;COUNT=10;BYMONTH=1,2,3");
spSchedule1->EndUpdate();

251
Recurrence: Yearly in June and July for 10 occurrences

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,6,10,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthX(2);
	var_Calendar->PutMaxMonthY(2);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,6,10,9,00,00).operator DATE(),COleDateTime(1997,6,10,14,00,00).operator DATE())->PutRepetitive(L"FREQ=YEARLY;COUNT=10;BYMONTH=6,7");
spSchedule1->EndUpdate();

250
Recurrence: Every Tuesday, every other month

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,2,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,2,9,00,00).operator DATE(),COleDateTime(1997,9,2,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;INTERVAL=2;BYDAY=TU");
spSchedule1->EndUpdate();

249
Recurrence: Every 18 months on the 10th thru 15th of the month for 10 occurrences

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,10,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,10,9,00,00).operator DATE(),COleDateTime(1997,9,10,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;INTERVAL=18;COUNT=10;BYMONTHDAY=10,11,12,13,14,15");
spSchedule1->EndUpdate();

248
Recurrence: Monthly on the first and last day of the month for 10 occurrences

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,30,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,3,9,00,00).operator DATE(),COleDateTime(1997,9,3,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;COUNT=10;BYMONTHDAY=1,-1");
spSchedule1->EndUpdate();

247
Recurrence: Monthly on the 2nd and 15th of the month for 10 occurrences

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,2,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,2,9,00,00).operator DATE(),COleDateTime(1997,9,2,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;COUNT=10;BYMONTHDAY=2,15");
spSchedule1->EndUpdate();

246
Recurrence: Monthly on the third to the last day of the month, forever

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,28,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,28,9,00,00).operator DATE(),COleDateTime(1997,9,28,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;BYMONTHDAY=-3");
spSchedule1->EndUpdate();

245
Recurrence: Monthly on the second to last Monday of the month for 6 months

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,22,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,22,9,00,00).operator DATE(),COleDateTime(1997,9,22,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;COUNT=6;BYDAY=-2MO");
spSchedule1->EndUpdate();

244
Recurrence: Every other month on the 1st and last Sunday of the month for 10 occurrences

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,7,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,7,9,00,00).operator DATE(),COleDateTime(1997,9,7,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;INTERVAL=2;COUNT=10;BYDAY=1SU,-1SU");
spSchedule1->EndUpdate();

243
Recurrence: Monthly on the 1st Friday until December 24, 1997

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,5,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,5,9,00,00).operator DATE(),COleDateTime(1997,9,5,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;UNTIL=19971224T000000Z;BYDAY=1FR");
spSchedule1->EndUpdate();

242
Recurrence: Monthly on the 1st Friday for ten occurrences

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,5,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,5,9,00,00).operator DATE(),COleDateTime(1997,9,5,14,00,00).operator DATE())->PutRepetitive(L"FREQ=MONTHLY;COUNT=10;BYDAY=1FR");
spSchedule1->EndUpdate();

241
Recurrence: Every other week on Tuesday and Thursday, for 8 occurrences

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,16,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,2,9,00,00).operator DATE(),COleDateTime(1997,9,2,14,00,00).operator DATE())->PutRepetitive(L"FREQ=WEEKLY;INTERVAL=2;COUNT=8;WKST=SU;BYDAY=TU,TH");
spSchedule1->EndUpdate();

240
Recurrence: Every other week on Monday, Wednesday and Friday until December 24, 1997, but starting on Tuesday, September 2, 1997

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,17,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,2,9,00,00).operator DATE(),COleDateTime(1997,9,2,14,00,00).operator DATE())->PutRepetitive(L"FREQ=WEEKLY;INTERVAL=2;UNTIL=19971224T000000Z;WKST=SU;BYDAY=MO,WE,FR");
spSchedule1->EndUpdate();

239
Recurrence: Weekly on Tuesday and Thursday for 5 weeks

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,16,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,2,9,00,00).operator DATE(),COleDateTime(1997,9,2,14,00,00).operator DATE())->PutRepetitive(L"FREQ=WEEKLY;UNTIL=19971007T000000Z;WKST=SU;BYDAY=TU,TH");
spSchedule1->EndUpdate();

238
Recurrence: Weekly on Tuesday and Thursday for 5 weeks

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,16,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,2,9,00,00).operator DATE(),COleDateTime(1997,9,2,14,00,00).operator DATE())->PutRepetitive(L"FREQ=WEEKLY;COUNT=10;WKST=SU;BYDAY=TU,TH");
spSchedule1->EndUpdate();

237
Recurrence: Every other day - forever

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,4,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,2,9,00,00).operator DATE(),COleDateTime(1997,9,2,14,00,00).operator DATE())->PutRepetitive(L"FREQ=DAILY;INTERVAL=2");
spSchedule1->EndUpdate();

236
Recurrence: Daily until December 24, 1997

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,17,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,2,9,00,00).operator DATE(),COleDateTime(1997,9,2,14,00,00).operator DATE())->PutRepetitive(L"FREQ=DAILY;UNTIL=19971224T000000Z");
spSchedule1->EndUpdate();

235
Recurrence: Daily for 10 occurrences

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(1997,9,9,0,00,00).operator DATE());
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutMaxMonthY(4);
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->GetPattern()->PutType(EXSCHEDULELib::exPatternFrame);
		var_Highlight->PutBold(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(1997,9,2,9,00,00).operator DATE(),COleDateTime(1997,9,2,14,00,00).operator DATE())->PutRepetitive(L"FREQ=DAILY;COUNT=10");
spSchedule1->EndUpdate();

234
How do I display the week number according, so the January 1st is in the first week

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2016,1,1,0,00,00).operator DATE());
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutDisplayWeekNumberAs(EXSCHEDULELib::exSimpleWeekNumber);
spSchedule1->EndUpdate();

233
How do I display the week number according to ISO8601 standard

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2016,1,4,0,00,00).operator DATE());
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	var_Calendar->PutDisplayWeekNumberAs(EXSCHEDULELib::exISO8601WeekNumber);
spSchedule1->EndUpdate();

232
How do I hide the week number

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	var_Calendar->PutShowWeeks(VARIANT_FALSE);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
spSchedule1->EndUpdate();

231
How can I change the background color of the all day header

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	var_Calendar->PutSelectDate(COleDateTime(2012,5,8,0,00,00).operator DATE(),VARIANT_TRUE);
	var_Calendar->Select(EXSCHEDULELib::exSelectWeek);
	var_Calendar->PutSelectDate(COleDateTime(2012,5,15,0,00,00).operator DATE(),VARIANT_FALSE);
	var_Calendar->Select(EXSCHEDULELib::SelectCalendarDateEnum(EXSCHEDULELib::exSelectToggle | EXSCHEDULELib::exSelectWeek));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleAllDayHeaderBackColor,RGB(240,240,240));
spSchedule1->PutHeaderAllDayEventHeight(-20);
spSchedule1->GetEvents()->Add(COleDateTime(2012,5,8,0,00,00).operator DATE(),COleDateTime(2012,5,17,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->EndUpdate();

230
How can I display a single text on a specified date

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,26,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value in (#05/23/2012#,#05/24/2012#,#05/25/2012#)");
spSchedule1->GetNonworkingPatterns()->Add(1234,EXSCHEDULELib::exPatternEmpty)->PutBackgroundExt(L"[text=`<font ;6><fgcolor 808080>just a notice`,align=0x11]");
spSchedule1->GetNonworkingTimes()->Add(L"value = #05/25/2012#",L"09:00",L"10:00",1234);
spSchedule1->EndUpdate();

229
I am using the control's DataSource property, the question is how can I get the event's identifier Datafield(exEventID)

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->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 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library'

	#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
	rs->Open("Events","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExSchedule\\Sample\\Access2007\\datasource.accdb",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2013,11,11,0,00,00).operator DATE());
spSchedule1->PutDataField(EXSCHEDULELib::exEventStartDateTime,"Start");
spSchedule1->PutDataField(EXSCHEDULELib::exEventEndDateTime,"End");
spSchedule1->PutDataField(EXSCHEDULELib::exEventExtraLabel,"Extra");
spSchedule1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
OutputDebugStringW( _bstr_t(spSchedule1->GetEvents()->GetItem(long(1))->GetKnownProperty(EXSCHEDULELib::exEventID)) );
spSchedule1->EndUpdate();

228
Is it possible to display some text/image on the schedule's view background

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,25,0,00,00).operator DATE());
spSchedule1->GetNonworkingPatterns()->Add(1234,EXSCHEDULELib::exPatternBDiagonal)->PutBackgroundExt(L"[text=`<fgcolor 808080>just a caption`,align=0x11]");
spSchedule1->GetNonworkingPatterns()->Add(1235,EXSCHEDULELib::exPatternEmpty)->PutBackgroundExt(L"[text=`<fgcolor 808080>just another caption`,align=0x11]");
spSchedule1->GetNonworkingTimes()->Add(L"weekday(value) = 5",L"08:00",L"08:59:59",1234);
spSchedule1->GetNonworkingTimes()->Add(L"weekday(value) = 5",L"09:00",L"09:59:59",1235);
spSchedule1->GetNonworkingTimes()->Add(L"weekday(value) = 5",L"10:00",L"10:59:59",1234);
spSchedule1->EndUpdate();

227
How can I display a text on the schedule's view background

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,25,0,00,00).operator DATE());
spSchedule1->GetNonworkingPatterns()->Add(1234,EXSCHEDULELib::exPatternEmpty)->PutBackgroundExt(L"[text=`<fgcolor 808080>just a caption`,align=0x11]");
spSchedule1->GetNonworkingTimes()->Add(L"weekday(value) = 5",L"12:00",L"13:00",1234);
spSchedule1->EndUpdate();

226
Is it possible to change the visual appearance of the edit's context menu

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spSchedule1->PutBackground(EXSCHEDULELib::exContextMenuAppearance,0x1000000);

225
How do I customize the edit's context menu

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->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=");
spSchedule1->PutEditContextMenuItems(L"Insert[group=3](<img>1</img>[id=57763],<img>2</img>[id=57763])");

224
How can I lock/fix the date header, so it stays on the top while the user scrolls the chart

// LayoutEndChanging event - Notifies your application once the control's layout has been changed.
void OnLayoutEndChangingSchedule1(long   Operation)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'
		#import <ExSchedule.dll>
		using namespace EXSCHEDULELib;
	*/
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Operation" );
	spSchedule1->PutDayViewHeight(2016);
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelectDate(COleDateTime(2012,5,20,0,00,00).operator DATE(),VARIANT_TRUE);
	var_Calendar->Select(EXSCHEDULELib::exSelectWeek);
spSchedule1->PutScrollBars(EXSCHEDULELib::exVertical);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewSingleRowLockHeader);
spSchedule1->PutDayViewHeight(2016);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowToggleSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowExchangePanels(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMoveTimeScale(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeTimeScale(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMultiDaysEvent(VARIANT_FALSE);
spSchedule1->GetTimeScales()->GetItem(long(0))->PutMinorTimeRuler(L"00:10");
spSchedule1->PutDayStartTime(L"00:00");
spSchedule1->PutDayEndTime(L"24:00");
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
spSchedule1->EndUpdate();

223
Is there any way to control the vertical size of each hour other than by the font and/or the minor time scale being changed

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelectDate(COleDateTime(2012,5,20,0,00,00).operator DATE(),VARIANT_TRUE);
	var_Calendar->Select(EXSCHEDULELib::exSelectWeek);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exChangePanels | EXSCHEDULELib::exHideSplitter));
spSchedule1->PutScrollBars(EXSCHEDULELib::exVertical);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewSingleRow);
spSchedule1->PutDayViewHeight(2016);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowToggleSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowExchangePanels(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMoveTimeScale(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeTimeScale(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMultiDaysEvent(VARIANT_FALSE);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleBorderSelColor,spSchedule1->GetBackground(EXSCHEDULELib::exScheduleBorderSelColorUnFocus));
spSchedule1->GetTimeScales()->GetItem(long(0))->PutMinorTimeRuler(L"00:10");
spSchedule1->PutDayStartTime(L"00:00");
spSchedule1->PutDayEndTime(L"24:00");
spSchedule1->EndUpdate();

222
How can I show a single week, no calendar

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelectDate(COleDateTime(2012,5,20,0,00,00).operator DATE(),VARIANT_TRUE);
	var_Calendar->Select(EXSCHEDULELib::exSelectWeek);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exChangePanels | EXSCHEDULELib::exHideSplitter));
spSchedule1->PutScrollBars(EXSCHEDULELib::exNoScroll);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewSingleRow);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowToggleSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowExchangePanels(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMoveTimeScale(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeTimeScale(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMultiDaysEvent(VARIANT_FALSE);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleBorderSelColor,spSchedule1->GetBackground(EXSCHEDULELib::exScheduleBorderSelColorUnFocus));
spSchedule1->EndUpdate();

221
How do I select the dates within a giving interval only

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2012,5,1,0,00,00).operator DATE());
	var_Calendar->PutSelection("(value >= #5/13/2012#) and (value <= #5/26/2012#)");
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE());
spSchedule1->EndUpdate();

220
How do I display the dates within a giving interval only

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
	var_Calendar->PutMinDate(COleDateTime(2012,5,13,0,00,00).operator DATE());
	var_Calendar->PutMaxDate(COleDateTime(2012,5,26,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE());
spSchedule1->EndUpdate();

219
Is it possible that the time is displayed starting from 00:00 to 24:00 00 instead of 08:00 AM to 04:00 PM

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutDayStartTime(L"00:00");
spSchedule1->PutDayEndTime(L"24:00");
EXSCHEDULELib::ITimeScalePtr var_TimeScale = spSchedule1->GetTimeScales()->GetItem(long(0));
	var_TimeScale->PutMajorTimeLabel(L"<%hh%>:<%nn%>");
	var_TimeScale->PutWidth(32);

218
How do I show a double frame

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->PutDefaultEventLongLabel(L"");
spSchedule1->PutDefaultEventShortLabel(L"");
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2001,1,10,8,00,00).operator DATE(),COleDateTime(2001,1,10,10,00,00).operator DATE());
		var_Event->PutBodyBackgroundExt(_bstr_t("top[25%,back=RGB(255,0,0),align=0x21,pattern=0x000,frame=RGB(0,0,0)],client[back=RGB(255,255,0),align=0x21,pattern=0x000,frame=") +
"RGB(0,0,0)]");
		var_Event->PutBodyBackgroundExtValue(EXSCHEDULELib::exIndexExt1,EXSCHEDULELib::exBackColorExt,long(255));
		var_Event->PutBodyBackgroundExtValue(EXSCHEDULELib::exIndexExt1,EXSCHEDULELib::exClientExt,"35%");
	EXSCHEDULELib::IEventPtr var_Event1 = var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,12,00,00).operator DATE());
		var_Event1->PutBodyBackgroundExt(L"top[25%,back=RGB(255,0,0),align=0x22],client[back=RGB(255,255,0),align=0x22]");
		var_Event1->PutBodyBackgroundExtValue(EXSCHEDULELib::exIndexExt1,EXSCHEDULELib::exClientExt,"35%");
		var_Event1->PutBodyBackgroundExtValue(EXSCHEDULELib::exIndexExt2,EXSCHEDULELib::exBackColorExt,long(65535));
	EXSCHEDULELib::IEventPtr var_Event2 = var_Events->Add(COleDateTime(2001,1,10,12,00,00).operator DATE(),COleDateTime(2001,1,10,14,00,00).operator DATE());
		var_Event2->PutShowStatus(VARIANT_FALSE);
		var_Event2->PutBodyBackgroundExt(_bstr_t("left[4,back=RGB(128,128,128)],top[25%,back=RGB(255,0,0)],client[back=RGB(255,255,0)],none[(0%,0%,100%,100%),pattern=0x000,frame") +
"=RGB(0,0,0)]");
	EXSCHEDULELib::IEventPtr var_Event3 = var_Events->Add(COleDateTime(2001,1,10,14,00,00).operator DATE(),COleDateTime(2001,1,10,16,00,00).operator DATE());
		var_Event3->PutShowStatus(VARIANT_FALSE);
		var_Event3->PutBodyBackgroundExt(_bstr_t("left[4,back=RGB(128,128,128)],top[25%,back=RGB(255,0,0)],client[back=RGB(255,255,0)],none[(4,0%,100%-4,100%),pattern=0x000,fram") +
"e=RGB(0,0,0)]");

217
How can I add more colors on the event

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE())->PutBodyBackgroundExt(L"bottom[15%](left[65%,frame,back=RGB(128,255,255)],client[back=RGB(255,0,0),frame])");
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE())->PutBodyBackgroundExt(L"right[15%](bottom[35%,frame,back=RGB(128,255,255)],client[back=RGB(255,0,0),frame])");
	var_Events->Add(COleDateTime(2001,1,10,11,00,00).operator DATE(),COleDateTime(2001,1,10,14,00,00).operator DATE())->PutBodyBackgroundExt(_bstr_t("left[33%,back=RGB(0,128,0)](top[50%,back=RGB(0,255,0)]),left[33%](top[33%,back=RGB(0,255,255)],top[33%,back=RGB(0,0,128)],clien") +
"t[back=RGB(0,0,255)]),client(top[25%,back=RGB(240,240,240)],top[25%,back=RGB(192,192,192)],top[25%,back=RGB(128,128,128)],client" +
"[back=RGB(0,0,0)])");

216
When I have 3 month visible in the calendar section, it seems I can only move back and forth through the months 3 months at a time. Is it possible to move back and forth through the months 1 month at a time
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutAlignDate(VARIANT_FALSE);
	var_Calendar->PutMinMonthY(2);
	var_Calendar->PutMaxMonthY(2);

215
How can I bound the control to a data source

// Error event - Fired when an internal error occurs.
void OnErrorSchedule1(long   Error,LPCTSTR   Description)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'
		#import <ExSchedule.dll>
		using namespace EXSCHEDULELib;
	*/
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Description" );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->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 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library'

	#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
	rs->Open("Events","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExSchedule\\Sample\\Access2007\\datasource.accdb",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2013,11,11,0,00,00).operator DATE());
spSchedule1->PutDataField(EXSCHEDULELib::exEventStartDateTime,"Start");
spSchedule1->PutDataField(EXSCHEDULELib::exEventEndDateTime,"End");
spSchedule1->PutDataField(EXSCHEDULELib::exEventExtraLabel,"Extra");
spSchedule1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spSchedule1->EndUpdate();

214
How can I start drag and drop an event

// OLEStartDrag event - Occurs when the OLEDrag method is called.
void OnOLEStartDragSchedule1(LPDISPATCH   Data,long FAR*   AllowedEffects)
{
	// Data.SetData( "your data to be dragged" )
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'
		#import <ExSchedule.dll>
		using namespace EXSCHEDULELib;
	*/
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	AllowedEffects = 1;
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutOLEDropMode(EXSCHEDULELib::exOLEDropManual);
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
spSchedule1->PutDefaultEventLongLabel(L"<%=%256%><br><%=%5%>");
spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel());
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
spSchedule1->GetEvents()->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE())->PutExtraLabel(L"Click the event and wait to start dragging.");
spSchedule1->EndUpdate();

213
I use the HighlightDate property to mark a date, instead the selection is not visible if I select the same date. What can be done

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutShowHighlightDate(EXSCHEDULELib::ShowHighlightDateEnum(EXSCHEDULELib::exHighlightDateCalendarEllipticClip | EXSCHEDULELib::exHighlightDateCalendarGradient | EXSCHEDULELib::exShowHighlightDateCalendar));
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,1,0,00,00).operator DATE());
spSchedule1->PutHighlightDate(COleDateTime(2001,1,9,0,00,00).operator DATE(),long(65280));
spSchedule1->PutHighlightDate(COleDateTime(2001,1,17,0,00,00).operator DATE(),"65280,255");
spSchedule1->PutHighlightDate(COleDateTime(2001,1,25,0,00,00).operator DATE(),"255,65280,16711680");

212
How can I arrange the colors to highlight the date vertically

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutShowHighlightDate(EXSCHEDULELib::ShowHighlightDateEnum(EXSCHEDULELib::exHighlightDateVertical | EXSCHEDULELib::exShowHighlightDateCalendar));
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,1,0,00,00).operator DATE());
spSchedule1->PutHighlightDate(COleDateTime(2001,1,9,0,00,00).operator DATE(),long(65280));
spSchedule1->PutHighlightDate(COleDateTime(2001,1,17,0,00,00).operator DATE(),"65280,255");
spSchedule1->PutHighlightDate(COleDateTime(2001,1,25,0,00,00).operator DATE(),"255,65280,16711680");

211
Is it possible to highlight a date in gradient

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutShowHighlightDate(EXSCHEDULELib::ShowHighlightDateEnum(EXSCHEDULELib::exHighlightDateCalendarGradient | EXSCHEDULELib::exShowHighlightDateCalendar));
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,1,0,00,00).operator DATE());
spSchedule1->PutHighlightDate(COleDateTime(2001,1,9,0,00,00).operator DATE(),long(65280));
spSchedule1->PutHighlightDate(COleDateTime(2001,1,17,0,00,00).operator DATE(),"65280,255");
spSchedule1->PutHighlightDate(COleDateTime(2001,1,25,0,00,00).operator DATE(),"255,65280,16711680");

210
Is it possible to highlight a date in the calendar panel only

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutShowHighlightDate(EXSCHEDULELib::exShowHighlightDateCalendar);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,1,0,00,00).operator DATE());
spSchedule1->PutHighlightDate(COleDateTime(2001,1,9,0,00,00).operator DATE(),long(65280));
spSchedule1->PutHighlightDate(COleDateTime(2001,1,17,0,00,00).operator DATE(),"65280,255");
spSchedule1->PutHighlightDate(COleDateTime(2001,1,25,0,00,00).operator DATE(),"255,65280,16711680");

209
Is it possible to highlight a date in the control

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutShowHighlightDate(EXSCHEDULELib::exShowHighlightDate);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,25,0,00,00).operator DATE());
spSchedule1->PutHighlightDate(COleDateTime(2001,1,9,0,00,00).operator DATE(),long(65280));
spSchedule1->PutHighlightDate(COleDateTime(2001,1,17,0,00,00).operator DATE(),"65280,255");
spSchedule1->PutHighlightDate(COleDateTime(2001,1,25,0,00,00).operator DATE(),"255,65280,16711680");

208
How we need to put "nonworking time" to each group, because staff A is working different times then staff B. Is this possible

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutBodyEventBackColor(RGB(240,240,240));
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);
spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->GetGroups()->Add(1,L"Group 1")->PutVisible(VARIANT_TRUE);
spSchedule1->GetGroups()->Add(2,L"Group 2")->PutVisible(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,25,0,00,00).operator DATE());
spSchedule1->GetNonworkingPatterns()->Add(1234,EXSCHEDULELib::exPatternBrick);
EXSCHEDULELib::INonworkingTimesPtr var_NonworkingTimes = spSchedule1->GetNonworkingTimes();
	var_NonworkingTimes->Add(L"1",L"00:00",L"08:45",1234);
	var_NonworkingTimes->Add(L"weekday(value) = 5",L"10:00",L"11:45",1)->PutGroupID(long(1));
	var_NonworkingTimes->Add(L"weekday(value) = 5",L"12:00",L"13:00",1234)->PutGroupID(long(2));
spSchedule1->GetEvents()->Add(COleDateTime(2012,5,25,9,30,00).operator DATE(),COleDateTime(2012,5,25,13,00,00).operator DATE())->PutGroupID(1);
spSchedule1->EndUpdate();

207
I have a double click event set to launch a window so the user can supply input. The problem is that double click changes the view. How do I change this behavior
// DblClick event - Occurs when the user dblclk the left mouse button over an object.
void OnDblClickSchedule1(short   Shift,long   X,long   Y)
{
	OutputDebugStringW( L"DblClick " );
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'
		#import <ExSchedule.dll>
		using namespace EXSCHEDULELib;
	*/
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"X" );
	OutputDebugStringW( L"Y" );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutStatusColor(RGB(255,0,0));
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE());
spSchedule1->PutAllowEditEvent(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowToggleSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->EndUpdate();

206
I have two-time scales. How do I change the label while updating the events to show the date-time on the second time-scale

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutDayEndTime(L"13:00");
EXSCHEDULELib::ITimeScalePtr var_TimeScale = spSchedule1->GetTimeScales()->Add(L"+3:00");
	var_TimeScale->PutAlignLeft(VARIANT_TRUE);
	var_TimeScale->PutCaption(L"EST <b>+03");
spSchedule1->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->PutUpdateEventsLabel(L"Start: <%=date(%1+3/24)%><br>End: <%=date(%2+3/24)%>");
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE());
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE());
spSchedule1->EndUpdate();

205
Is there a way to add a hyperlink to the event that would run a report with parameters

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

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE())->PutLongLabel(L"<%=%256%><br><a 1234;option 1>more ...</a>");
	var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutLongLabel(L"<%=%256%><br><a 1235;option 2>more ...</a>");

204
Can I have multiple months in the calendar section

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutMinMonthY(2);
	var_Calendar->PutMaxMonthY(2);

203
I need to make sure that at least the order number stays visible when the event is resized. Is there a way during event modification (another event be added at the same time that makes the event size shrink) to adjust the caption location

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE());
		var_Event->PutUserData(long(1234));
		var_Event->PutShortLabel(L"<%=%256%><br>Order: <%=%6%>");
		var_Event->PutLongLabel(var_Event->GetShortLabel());
	EXSCHEDULELib::IEventPtr var_Event1 = var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE());
		var_Event1->PutUserData(long(1235));
		var_Event1->PutShortLabel(L"<%=%256%>, Order: <%=%6%>");
		var_Event1->PutLongLabel(var_Event1->GetShortLabel());

202
I need to make sure that at least the order number stays visible when the event is resized. Is there a way during event modification (another event be added at the same time that makes the event size shrink) to adjust the caption location

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE());
spSchedule1->PutDefaultEventShortLabel(L"<%=%256%><br>Order: <b><%=%6%>");
spSchedule1->PutDefaultEventLongLabel(spSchedule1->GetDefaultEventShortLabel());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE())->PutUserData(long(1234));
	var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutUserData(long(1235));

201
Can you add text with links in the event

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

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE());
		var_Event->PutShortLabel(L"<a 1><%=%256%></a>");
		var_Event->PutLongLabel(var_Event->GetShortLabel());
	EXSCHEDULELib::IEventPtr var_Event1 = var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE());
		var_Event1->PutShortLabel(L"<a 2><%=%256%></a>");
		var_Event1->PutLongLabel(var_Event1->GetShortLabel());