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.0 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.0 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());

200:
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();
	var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE())->PutExtraLabel(L"<aID1234;OPTIONS-1234>click me</a>");
	var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutExtraLabel(L"<a1235;OPTIONS-1235>click me</a>");

199:
How do you adjust the font type and size of the event (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->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE());
spSchedule1->PutDefaultEventShortLabel(L"<font mistral;12><%=%256%>");
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());
	var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE());

198:
How do you adjust the font type and size of the event (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->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"<font tahoma;12><%=%256%>");
		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"<fgcolor FF><i><font Mistral;16>your caption</i></font> goes here");
		var_Event1->PutLongLabel(var_Event1->GetShortLabel());

197:
How can I change the shape of the line to be shown when user drag and drop data over 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->PutOLEDropMode(EXSCHEDULELib::exOLEDropManual);
spSchedule1->GetVisualAppearance()->Add(1,"C:\\Program Files\\Exontrol\\ExSchedule\\Sample\\EBN\\dash1.ebn");
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleOLEDropPosition,0x1000000);

196:
How can I highlight the date-time from cursor when the user drag and drop data over 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->PutOLEDropMode(EXSCHEDULELib::exOLEDropManual);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleOLEDropPosition,RGB(1,0,0));

195:
How can I start drag and drop events

// OLEStartDrag event - Occurs when the OLEDrag method is called.
void OnOLEStartDragSchedule1(LPDISPATCH Data,long FAR* AllowedEffects)
{
	// Data.SetData("to be carried by drag and drop")
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace '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->PutAllowMoveEvent(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowCreateEvent(EXSCHEDULELib::exDisallow);
spSchedule1->PutOLEDropMode(EXSCHEDULELib::exOLEDropManual);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,27,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,6,27,11,00,00).operator DATE(),COleDateTime(2012,6,27,12,30,00).operator DATE())->PutBodyBackColor(RGB(255,0,0));
	var_Events->Add(COleDateTime(2012,6,27,11,30,00).operator DATE(),COleDateTime(2012,6,27,13,30,00).operator DATE());
	var_Events->Add(COleDateTime(2012,6,27,8,30,00).operator DATE(),COleDateTime(2012,6,27,11,45,00).operator DATE());
spSchedule1->EndUpdate();

194:
Is it possible to show the today date with a different foreground color

/*
	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(_bstr_t("month(value) = month(date(``)) and (int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday") +
"(date(``))-1)/7))");
spSchedule1->PutBackground(EXSCHEDULELib::exCalendarMarkToday,spSchedule1->GetBackColor());
spSchedule1->PutBackground(EXSCHEDULELib::exCalendarMarkTodayForeColor,RGB(255,0,0));

193:
How can I hide the rectangle around the today 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->GetCalendar()->PutSelection(_bstr_t("month(value) = month(date(``)) and (int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday") +
"(date(``))-1)/7))");
spSchedule1->PutBackground(EXSCHEDULELib::exCalendarMarkToday,spSchedule1->GetBackColor());

192:
Is it possible to change the appearance of event with no status using the EBN (office theme)

/*
	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("gBFLBCJwBAEHhEJAEGg4BeoDg6AADACAxRDAMgBQKAAzQFAYaBqGqGAAGKD4JhUAIIRZGMIjFDcEwxC6NIpAWCYRDGEwCQiNQyRDCYYw+GYCJBmKKYcgONYgQLHcgxD") +
"IsJw/FyERjjeB4egkaZHRZOUZTZQsBxRAZ2Q4EQAKRpOFY9DTPcr0HR8ZQ+BKNAYkSjQAp2VZUVJFUqDKItVzbBIaRgteA7RrOXpjRjYEBxDKcZyxLqVLToiqcRz7Pqb" +
"ZrjeioZoyBI+QjgYAUFDeGSTDQ3bwAA4rEqaaZnVbkOQQJTcNy7EKvYRzGA7CgPHI5QjnVR6BjUJztWyIbp3G4rchqH4RaqAF5ZXg9ez/FIaJbnUaMWhXFqOABwPC0Xo" +
"IGuAJklAeR6H2dAngcEZWnQehzCsd4SmGPJzF2Io1l2fhrgeUpxHOLIAggSRAlIYw6B0ThGFyEJ4CEAwQgSV51BkDYQhCIQJHgGp0gAGBFgCB55nAAC3HCbYEGEOBIHO" +
"BZhggZgagYIRIHYEoFCGMoSCKCJiEiFgjgaYZjjYGIJiKSI2CeBZiAgXgugyYxIgYNINmIaJaDiDpKEiag8g2Y5on4M4GkqGQWEaEZkgkJhKhEZBJC4ToTmSSBqFCFJk" +
"ikNhUhXQpaFiFJlikbhPhcZZpC4GwqmYSYWGaGZmgmJhkhiZopjYboamGKY+HKGhmkmTh2CqZxZl4coeGeKY6HyHxmigbIuiCaBKBaBohmiCgOgKIhokoNoKgaKJqEaC" +
"IimkwwuiUKVyBiJk7m6HIiGGMqbCiSwqhaI4pmqComiOKBqiqNouioKpKj6JQsiqapOiuBoqnqZouiwaxahqOooiuSp+j+BpLEsFpGjGbILCaSoxGwSwuk6M5skgapQj" +
"SbIrDaVI15AWpYjSbYrG6T43G2a1Ui2bhLhaZo5m6C4mmSOJuiuNpujqYYrj6co6G6S5OnYLZvFuXpyj4b4rjqfI/G7aA7kCcBMBcBpBnCDAPAKQhwkwN1wjCbBHAiQp" +
"xCwVI7kVlJHBiRhwlwbzrHGbB/AeBpLlyFI/kmcoMiMJQvHKLIbCeSpyjyEwwkycxMk8LZMDMLIzC+S4LnyVw+kwYYsn8P5KHOPJoj+TnQl8NJSjMPJnEzmR9CMQpUnO" +
"SBvESVZ1g0ZwplWNYtHcXZXDWbYHESWA2C2Fxklkdgdh8aJXmGLYvGaBoME2RxylydxNlcdpcGGPZfHqXp3C2M4fIv3sD3ACMETAnALgJF+PAbgPh7jEHiFsXgNgxjyA" +
"4I8EoyR5CcFeCEY48huDPBqMsYYXBvg9GUPMDg/wiBjHoD0D4PRpD0G4NdcY8hoDZEqNcewHRHhlGyPYTofwujaHuB0Z4bQGh3C6O9ng9xvAJEqA0TIfgXiNHGPkDznx" +
"xD4E8F8To5x8iQGuKEdI+QvBvFSOuKotxYjpGGGYN4vR3j8A+A8Yo8R9jeHeMkeY/QPgsBoGcPonw3jdHuP4D4jxsgNH8F8V47R7D+E+L8eo+A/g/G+PwGYnx1j/D+FA" +
"AwAQfhoASAEL4lADiBAePEeowBcANAGGAOgCQhhDCMAoIIWAWgFHAMQDIghEBuAaEEbAPQChgHIB8QgUAxAQGEDgJgNAwgsBOIQJAbUpCoBoIoCAtAJiFGgMEBQwwqBj" +
"AWCEYAcwigoCgIAQBAQ==");
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exChangePanels | EXSCHEDULELib::exHideSplitter));
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,27,0,00,00).operator DATE());
spSchedule1->PutBodyEventBackColor(0x1000000);
spSchedule1->PutShowStatusEvent(VARIANT_FALSE);
spSchedule1->PutDefaultEventPadding(EXSCHEDULELib::exPaddingAll,3);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleCreateEventBackColor,0x1000000);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleUpdateEventsBackColor,0x1000000);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,6,27,11,00,00).operator DATE(),COleDateTime(2012,6,27,12,30,00).operator DATE())->PutBodyBackColor(RGB(255,0,0));
	var_Events->Add(COleDateTime(2012,6,27,11,30,00).operator DATE(),COleDateTime(2012,6,27,13,30,00).operator DATE())->PutBodyBackColor(RGB(0,255,0));
spSchedule1->EndUpdate();

191:
Is it possible to change the appearance of event's status using the EBN (office theme)

/*
	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));
EXSCHEDULELib::IAppearancePtr var_Appearance = spSchedule1->GetVisualAppearance();
	var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BKYCg6AADACAxRDAMgBQKAAzQFAYaBqGqGAAGKD4JhUAIIRZGMIjFDcEwxC6NIpAWCYRDEMQ0AJCIzDJCIZBkHCPRjASQZUhmHIDTbIEBxf") +
"IMIxLE9IMwxfA8ax1GifI6hGSYDa0HAkABTVQRLL4aSDK6NaYmSL5DhkBokUpGKTpOhgATHMqqIzGURZNquEQ1DBbEI3BaUaw/CKRLAoahqVpqK4tS7MNa3XKkcxzD6e" +
"IypGBKAgmQoJDLRGIxTiYACxPQACzsEAKapKUZPRZVNYQJQlNRDLiEcrgOr4DxqO4aWbZViaDZVawlNy5bhtfaqGrfKYJYLrWCTbh0Tz9KzIJJwHbcKxjKrDczjEoSVw" +
"iAmSgcGmIxaggHBHFmFpoHEJwbg8FpammO5bEUaxbm6ZwDH+YI7EIQQQhKAYkkYdA6hyDI4ngGRIA8AwQgSV51BkDYQhCIQJHeHAkCAGBFgGR55m8CQBkONkYCEEgxGe" +
"BZJHQDgTgWFhFgyf4HmICByBqBRhmiAgmD+YggAIHIJmKSIhGMQJijiNgmgoYwYkoH4NCIWJaC6BhiiiZg2g4CR4moN4LmOWQGEKEAkCibgwg+vwiEeEQjFifhQhMIpZ" +
"DoOoViUKJyFGExlDkGhXhcZIZGIXIWiUSIyGKFRmAkPhkheJYZC4bIYmaaYGGmF5mjmSh1hqJwZmIRYdieGZSH2GxnjmahbhoJx5nqAYhigOYaHOIAohiHhniKKBaDIZ" +
"YjiiOZCgeJImnoEh/iWKJYk6FYmikehyhOJ4pBqCoZiQKY6gKHYIGmeoiiGKoqDqMoliwKh6FKM4riqOQOjeLYqhqYoxi6K5anKL4visWoSkGMYsDsCo5hKLIbCKS4jm" +
"yKp+kyM5qlsRpFiyLB7GKTY2i0Spuk6NItAsfpXjALY7hKXYIk6Wh2CmBphgqOgTjuYhIHachAlAECAg=");
	var_Appearance->Add(2,"CP:1 0 0 1 0");
	var_Appearance->Add(4,_bstr_t("gBFLBCJwBAEHhEJAEGg4BGoDg6AADACAxRDAMgBQKAAzQFAYaBqGqGAAGKD4JhUAIIRZGMIjFDcEwxC6NIpASLoJDCH4mSTHYxyHIMWwtDiBZgkCA4fiGEYnThKM5Sd") +
"KsXABG6NErSdDAAoKRIVTjAcsVTicAo+R7TcYgLBNAQHKQAHZDQRKZpuFoRRKJNgDLYUEhqGCyYDseyZNj2GZYRDPVqzWAFFzrFSqLilaYpSh+bpfSRSVI3PakQz+LCN" +
"CzwEAKYoaRZDRZgdzUbItMYNBKsMQgO6QAwqNKYQjWVaaFgEYzJMa2LTiHSqQhrGqMQjnV5ZPgVzZKZZGVQ1LBOOZfEJ2XacSqeCyWEqnRryFpWRpfGXiX7EOY7HaePw" +
"DAQQhKAaEwZlCahyDKDBjm4a5JAiG5jgyDYhCKDZukYSAYgsLAzh0RBlBqBAkA4Ox+n+H5AAGDJWDWH5jFmdBQl8Z5yAGAZfngDZ6H9HIiACAhUCgMgPgSYAYA4EoDiE" +
"WBGBiAxhAIXAADITRzGIIA2AyAxYleCJhGiFgnggYg4iIEYImKKIqC6B4iliMg2DYIRolYIoLA2ExmDmDwNhiNg9g+Y44goPYMmGeJeEKD4hBMMJbDaTIYnYTg2mUOBa" +
"FOFZknkVhNhYZZJFIT4ViWWRElmFohmkYhehQJA4ESTg3A2WYuG2GwmmgWhuhyZwJjIcodGaeZmGANpnEMdhkAAJ5ZE4cYaieCZ2HeHhoGoEoIh4IRjESXg3iialFiQa" +
"JaE6Fokg2ahWhiJBpEgRociWaZYHqH4mmiehqiOKBAAqDJUDgTgaiyYYFiqapGiyK4rAqTosiQa14jKKxrGqPo6i8a46laPIwmuGB6juMBrnsEo9jCLB6jKTIwCyawmk" +
"2L4sGsQpDjObIrFAAA2E4U4WlyN4tlsfgWjebhLgaXY4waApqjoLorhSZY7C6a4KBGPBuhuQppjyIZrlKa48m8e5WBENwOHOIyNDAHAOBaQJwgwFwBgWDZziSaZCHAQ4" +
"jAeQoxBwGp/kUMQME8FZFDGLBDBaB4xmwcwXkacQcDMDpDE6HIjCiSYyhyHwuDocpMisL5MHKfIuBGTIylyZgWDgToziyYg7A6TJ8myTwO7KPZRDQLQTEYOp0g0AxKgQ" +
"dBNDcQ5PHSPRHEeVQ1A0XxMlaNRdGsT4Hg4Q44m2WB2D2CxkgWNhNicZpYjaDYvGWW52l2PxqDsdz+meBBOGOIEcAdAPAnEcPIPAbx4C2H+MEd4XAHDxGEPEDgBh6jBD" +
"iDwEI4QFhvEOI8EYyR3i8EMPsZQcguCsBGMwOQMApj5GYEAPg8RtAADoDAFY9xpiAAQAggIA=");
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,27,0,00,00).operator DATE());
spSchedule1->PutStatusEventColor(0x2000000);
spSchedule1->PutBodyEventBackColor(0x4000000);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleCreateEventBackColor,0x1000000);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleUpdateEventsBackColor,0x1000000);
spSchedule1->PutStatusEventSize(6);
spSchedule1->PutDefaultEventPadding(EXSCHEDULELib::exPaddingAll,2);
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,6,27,11,00,00).operator DATE(),COleDateTime(2012,6,27,12,30,00).operator DATE())->PutBodyBackColor(RGB(255,0,0));
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,27,11,30,00).operator DATE(),COleDateTime(2012,6,27,13,30,00).operator DATE());
		var_Event->PutBodyBackColor(RGB(0,255,0));
		var_Event->PutStatusColor(RGB(0,0,128));
		var_Event->PutExtraLabel(L"Point");
	EXSCHEDULELib::IEventPtr var_Event1 = var_Events->Add(COleDateTime(2012,6,27,8,30,00).operator DATE(),COleDateTime(2012,6,27,11,45,00).operator DATE());
		var_Event1->PutStatusColor(RGB(255,0,255));
spSchedule1->EndUpdate();

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

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

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutBodyEventBackColor(RGB(240,240,240));
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())->PutExtraLabel(L"<sha ;;0>Event <b><font ;6><off 4>1");
	var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutExtraLabel(L"<sha ;;0>Event <b><font ;6><off 4>2");
	var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE())->PutExtraLabel(L"<sha ;;0>Event <b><font ;6><off -6>2<off 4>3<off 4>1");

189:
How can I hide the scheduler part of the control, so I can use 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->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exHideSplitter | EXSCHEDULELib::exResizePanelRight));

188:
I see how I can specify a non-working day pattern for weekends, but how can I specify non-working days for holidays

/*
	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->PutSelectDate(COleDateTime(2012,5,28,0,00,00).operator DATE(),VARIANT_TRUE);
	var_Calendar->Select(EXSCHEDULELib::exSelectWeek);
	var_Calendar->PutSelectDate(COleDateTime(2012,6,5,0,00,00).operator DATE(),VARIANT_FALSE);
	var_Calendar->Select(EXSCHEDULELib::SelectCalendarDateEnum(EXSCHEDULELib::exSelectToggle | EXSCHEDULELib::exSelectWeek));
	var_Calendar->PutSelectDate(COleDateTime(2012,6,12,0,00,00).operator DATE(),VARIANT_FALSE);
	var_Calendar->Select(EXSCHEDULELib::SelectCalendarDateEnum(EXSCHEDULELib::exSelectToggle | EXSCHEDULELib::exSelectWeek));
EXSCHEDULELib::INonworkingTimesPtr var_NonworkingTimes = spSchedule1->GetNonworkingTimes();
	var_NonworkingTimes->Add(L"month(value) = 5",L"00:00",L"24:00",-1);
	var_NonworkingTimes->Add(L"value in (#6/5/2012#,#6/7/2012#)",L"00:00",L"24:00",-1);

187:
How do I enable the scrollbar-extension, as thumb to be shown outside of the control's client 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();
spSchedule1->BeginUpdate();
spSchedule1->PutScrollBars(EXSCHEDULELib::exDisableBoth);
spSchedule1->PutScrollPartVisible(EXSCHEDULELib::exVScroll,EXSCHEDULELib::exExtentThumbPart,VARIANT_TRUE);
spSchedule1->PutScrollPartVisible(EXSCHEDULELib::exHScroll,EXSCHEDULELib::exExtentThumbPart,VARIANT_TRUE);
spSchedule1->PutScrollPartVisible(EXSCHEDULELib::ScrollBarEnum(0x2),EXSCHEDULELib::exExtentThumbPart,VARIANT_TRUE);
spSchedule1->PutScrollWidth(4);
spSchedule1->PutBackground(EXSCHEDULELib::exVSBack,RGB(240,240,240));
spSchedule1->PutBackground(EXSCHEDULELib::exVSThumb,RGB(128,128,128));
spSchedule1->PutScrollHeight(4);
spSchedule1->PutBackground(EXSCHEDULELib::exHSBack,spSchedule1->GetBackground(EXSCHEDULELib::exVSBack));
spSchedule1->PutBackground(EXSCHEDULELib::exHSThumb,spSchedule1->GetBackground(EXSCHEDULELib::exVSThumb));
spSchedule1->PutBackground(EXSCHEDULELib::exScrollSizeGrip,spSchedule1->GetBackground(EXSCHEDULELib::exVSBack));
spSchedule1->EndUpdate();

186:
How can I show contiguously the days, in a single row

/*
	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->PutSelectDate(COleDateTime(2012,5,20,0,00,00).operator DATE(),VARIANT_TRUE);
	var_Calendar->Select(EXSCHEDULELib::exSelectWeek);
	var_Calendar->PutSelectDate(COleDateTime(2012,5,27,0,00,00).operator DATE(),VARIANT_FALSE);
	var_Calendar->Select(EXSCHEDULELib::SelectCalendarDateEnum(EXSCHEDULELib::exSelectToggle | EXSCHEDULELib::exSelectWeek));
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewSingleRow);

185:
How can I show contiguously the 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();
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);
	var_Calendar->PutSelectDate(COleDateTime(2012,5,27,0,00,00).operator DATE(),VARIANT_FALSE);
	var_Calendar->Select(EXSCHEDULELib::SelectCalendarDateEnum(EXSCHEDULELib::exSelectToggle | EXSCHEDULELib::exSelectWeek));
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);

184:
How can I display the time in european format with no usage of AM/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();
EXSCHEDULELib::ITimeScalePtr var_TimeScale = spSchedule1->GetTimeScales()->GetItem(long(0));
	var_TimeScale->PutMajorTimeLabel(L"<%hh%>:<%nn%>");
	var_TimeScale->PutWidth(32);
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2001,6,11,0,00,00).operator DATE());
	var_Calendar->PutShortTimeFormat(L"<%h%>:<%nn%>");
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,6,11,10,00,00).operator DATE(),COleDateTime(2001,6,11,13,15,00).operator DATE());
	var_Events->Add(COleDateTime(2001,6,11,10,30,00).operator DATE(),COleDateTime(2001,6,11,14,30,00).operator DATE());

183:
Is it possible to zoom the schedule component using a key and scrolling the wheel (not pressing it and moving the mouse)
/*
	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->PutAllowResizeSchedule(EXSCHEDULELib::AllowKeysEnum(EXSCHEDULELib::exCTRLKey | EXSCHEDULELib::exMiddleClick));
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exMiddleClick);

182:
How can I change the format of the date being displayed 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->GetCalendar()->PutHeaderDayLabel(L"<sha><%mmmm%></sha> <sha><fgcolor=FF0000><%yyyy%></fgcolor></sha>");

181:
How can I display the Year in Thai, Buddhist, Korean format

/*
	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->PutFirstWeekDay(var_Calendar->GetLocFirstWeekDay());
	var_Calendar->PutMonthNames(var_Calendar->GetLocMonthNames());
	var_Calendar->PutWeekDays(var_Calendar->GetLocWeekDays());
	var_Calendar->PutAMPM(var_Calendar->GetLocAMPM());
	var_Calendar->PutHeaderDayLabel(L"<%mmmm%> <fgcolor=FF0000><%loc_yyyy%>");
spSchedule1->PutHeaderDayLongLabel(_bstr_t("<|><%dddd%>, <%mmmm%> <%d%>, <fgcolor=FF0000><%loc_yyyy%><|><%dddd%>,<%mmmm%> <%d%>,<fgcolor=FF0000><%loc_yyyy%><|><%dddd%>, <%") +
"mmmm%> <%d%>,`<fgcolor=FF0000><%loc_yy%><|><%dddd%>, <%mmmm%> <%d%><|><%dddd%>, <%m3%> <%d%><|><%dddd%>, <%d%><|><%dddd%><|><%d3" +
"%><|><%d2%><|><%d1%>");

180:
May I specify a fixed width for my dates, so user can not resize it
/*
	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::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exChangePanels | EXSCHEDULELib::exResizePanelRight));
spSchedule1->PutAllowResizeSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exMiddleClick);
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutDayViewWidth(96);
spSchedule1->PutDayViewHeight(256);
spSchedule1->EndUpdate();

179:
How can I change the format of date being displayed on the 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->PutHeaderDayLongLabel(_bstr_t("<|><%dddd%>, <%d%> <%mmmm%>, <%yyyy%><|><%dddd%>, <%d%> <%mmmm%>, <%yyyy%><|><%dddd%>, <%d%> <%mmmm%>,`<%yy%><|><%dddd%>, <%d%>") +
" <%mmmm%><|><%dddd%>, <%d%> <%m3%><|><%dddd%>, <%d%><|><%dddd%><|><%d3%><|><%d2%><|><%d1%>");

178:
Is there any notifications for exchanging the panels at runtime
// 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"End exLayoutExchangePanels(16)" );
	OutputDebugStringW( L"Operation" );
}

// LayoutStartChanging event - Occurs when the control's layout is about to be changed.
void OnLayoutStartChangingSchedule1(long Operation)
{
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Start exLayoutExchangePanels(16)" );
	OutputDebugStringW( L"Operation" );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutAllowExchangePanels(EXSCHEDULELib::exLeftClick);
spSchedule1->PutAllowCreateEvent(EXSCHEDULELib::exDisallow);

177:
How can I handle the All-Day 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->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit));
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	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->GetTimeScales()->GetItem(long(0))->PutVisible(VARIANT_FALSE);
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();

176:
Is it possible to show the All-Day events with EBN including the next/prev signs (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->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit));
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	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->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BbkMQAAYAQGKIYBkAKBQAGaAoDDcOILQiMQzjTBMKgBBCLIxiGK4DhiF4aRSBMIwYAAYhyG4BIRGcYJEDMOQzR4MICSBKkMhlDiPY5mUAJE") +
"iSJg3TDQlzpAoSGoeUhGTZnQaQASXJqKZ6kegoEh4MopTTHQLRUB8EyTDKnaapSJpEDINQlWTZciDKKFUQTNi3KxraKqbjqO47VJKEpSZBMXRhBIYZCueZZXgPBY5YhI" +
"E64BSeASoACDZzoaAwTrOAwUZZFVg2DSOGSBRzQMKrCZKagnFYDVzleYxLjdR47Qy1Ih2GA7QqubYkUTmOjgBaoAYxQaaLx0OS5Rj4NAwZLFXI1eAGd6BDLhLz4XAOHx" +
"HjmAZvGOWoeG8PhBiMGIMGOQxZCQOBpGUG4NncEIdB8MxLhSbpRnMIIIEkQJSGMOgdE4RhfAwJZtAwEIEleeQZA2EIQiECR2ludB8BgRYMAeKYDByB4DG5F4hBgTgWgU" +
"YYIFIGoFmGOBlAmBJMmMQJwggYg4goJIJmIaImCWCpigiLgTgeYQYjYMoKiMOIyDSCIinQDggg2YxonYNYNGOEACDuD4jkifhFg4IQYkCW4RiQSQ2ECEhjiiRhHhOJQ4" +
"jYQYQmSSRmFOFZlCkUhehMJZJC4VYYmWaYGFqF5ljkQhChcZh5jYKoZiYSY6D2HAmgmVhWhqJYJkYeoLieCYyHuHInEmSoAh8Zgplof4SA2OQqgKIZPAmBgciOYYaEIH" +
"YkmQFAEIC");
spSchedule1->GetVisualAppearance()->Add(2,_bstr_t("gBFLBCJwBAEHhEJAEGg4BVMIQAAYAQGKIYBkAKBQAGaAoDDYMwzQwAAxjOK0EwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQiiCYsS5GQBSFDcOwHGyQYDkCQpE") +
"hyKo+CTIAySXJsdw3IyNAIhEB4fgmM4DP7UIAVC78aRABCESgNEwzULUchlDDICJQSQRGzHDSKYDFCCaKgOTI6kgicpJUt6PBtaovKoWOZBcJ3Xjed6vBgeASpQbEL6w" +
"DCbfrjB6KY5eeDXXSkAkB");
spSchedule1->GetVisualAppearance()->Add(3,_bstr_t("gBFLBCJwBAEHhEJAEGg4BVUIQAAYAQGKIYBkAKBQAGaAoDDYMwzQwAAxjOK0EwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQiiCYsS5GQBSFDcOwHGyQYDkCQpE") +
"hyKo+CTIAySXJsZxpHKaAIhEB4fgmRgAP7UNQVFLkEgRBIoDRMM5DVLIZQxSAiUIkERtRQ1CqBRQhGioDoyOgABhFZSUPKlIztO45DwbO56RrlWzONA8FzXdgDYYLQjA" +
"cJwXA7awrAZ8P7iGBZBbtdQCgIA==");
spSchedule1->PutBodyEventBackColor(0x1000000);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleEventContinueNextWeek,0x2000000);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleEventContinuePrevWeek,0x3000000);
spSchedule1->PutHeaderAllDayEventHeight(-14);
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();

175:
How can I select programatically two 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();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	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));

174:
Is it possible to show the All-Day events with EBN including the next/prev signs (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->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->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BbkMQAAYAQGKIYBkAKBQAGaAoDDcOILQiMQzjTBMKgBBCLIxiGK4DhiF4aRSBMIwYAAYhyG4BIRGcYJEDMOQzR4MICSBKkMhlDiPY5mUAJE") +
"iSJg3TDQlzpAoSGoeUhGTZnQaQASXJqKZ6kegoEh4MopTTHQLRUB8EyTDKnaapSJpEDINQlWTZciDKKFUQTNi3KxraKqbjqO47VJKEpSZBMXRhBIYZCueZZXgPBY5YhI" +
"E64BSeASoACDZzoaAwTrOAwUZZFVg2DSOGSBRzQMKrCZKagnFYDVzleYxLjdR47Qy1Ih2GA7QqubYkUTmOjgBaoAYxQaaLx0OS5Rj4NAwZLFXI1eAGd6BDLhLz4XAOHx" +
"HjmAZvGOWoeG8PhBiMGIMGOQxZCQOBpGUG4NncEIdB8MxLhSbpRnMIIIEkQJSGMOgdE4RhfAwJZtAwEIEleeQZA2EIQiECR2ludB8BgRYMAeKYDByB4DG5F4hBgTgWgU" +
"YYIFIGoFmGOBlAmBJMmMQJwggYg4goJIJmIaImCWCpigiLgTgeYQYjYMoKiMOIyDSCIinQDggg2YxonYNYNGOEACDuD4jkifhFg4IQYkCW4RiQSQ2ECEhjiiRhHhOJQ4" +
"jYQYQmSSRmFOFZlCkUhehMJZJC4VYYmWaYGFqF5ljkQhChcZh5jYKoZiYSY6D2HAmgmVhWhqJYJkYeoLieCYyHuHInEmSoAh8Zgplof4SA2OQqgKIZPAmBgciOYYaEIH" +
"YkmQFAEIC");
spSchedule1->GetVisualAppearance()->Add(2,_bstr_t("gBFLBCJwBAEHhEJAEGg4BKMMQAAYAQGKIYBkAKBQAGaAoDDUNgwQwAAxDGKkEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQiiCYsS5GQBSFDcOwHGyQYDkCQpE") +
"hyKo+CTIA4SXJsdxpI4EIRCSL6MgNf5PABTb7zTSgYANF6WRZgWgpTjcMJHTpYFIwHRdQwHLqoagqKZJAqMABQGiYZyHKcwMYgBZXJBEbbMNBtBIUIRtaxZBBiFzgUZY" +
"EBnEbDN4YbapMhyLI2OZBcCOJQ4SCoW4GJ49J7KXgYZiHOLcfjcLovLq5fiOQ5CV5ZXROM6sQyzIKWaCzLL5PjKHInWrPNa3DJtDyXJzUNY9GScG6HBLhWB0czzXIuO4" +
"djqXg4jUOo9j8N4Zk6YoeA+bZKhcV49kyaAllODhPC8d5bi+WJ6H0fhvHcExIHgQB4nuHpOj4Y4zioeQfDePZRGcHI3lGIh9h4JwhkodQckecY9G+WpHDmUAdAeNwCBE" +
"fRcGaIZ/G2D52gWfR0iGRhFg8Y5iBYTQBICA=");
spSchedule1->GetVisualAppearance()->Add(3,_bstr_t("gBFLBCJwBAEHhEJAEGg4BgsHQAAYAQGKIYBkAKBQAGaAoDDUNgwQwAAxDGKkEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQiiCYsS5GQBSFDcOwHGyQYDkCQpE") +
"hyKo+CTIA4SXJsZxpI6EQQhEJIfo2Az/VAAFQPfLNKhgAyXZZFWBaCoaEgwUhVMhUVAdGR1BKvKjqKoZcomCRQGiYZyHKcwMYgBZRRBEbbMNBtBIULasWjQYhdYI7WDT" +
"dR4XhmGDkPBtcbbPDcUpBBSLOAjSSOExzILhSrFVyXVzTXL5XDGMg7Wa5foFIDmPRtVbWNydLyvICOJK2eZOExrHrhWrPMZaRpnUyXJ6pcBvfA4Zi7QZlWjPOR2aoNCZ" +
"bjuXpyjsPIahmYJ/keVR0HwPYsnIXQ4mSZ50jwXIfC+HxnmmcZ2HuCAOn+P43lSUZ1neXxeF4L4bmgeoeCcCZEHcXxIAGLBlBuBpphsdgfGaNB0B6WwXjoARrE+dxVkY" +
"ageAgHgUD+XJWm2U4GliNhJhIQBAICA==");
spSchedule1->PutBodyEventBackColor(0x1000000);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleEventContinueNextWeek,0x2000000);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleEventContinuePrevWeek,0x3000000);
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();

173:
Can I make it zoom in using CTRL-MouseWheel instead of using the middle 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->PutAllowResizeSchedule(EXSCHEDULELib::AllowKeysEnum(EXSCHEDULELib::exCTRLKey | EXSCHEDULELib::exMiddleClick));

172:
It is by default not possible, to simply scroll the component with the mouse wheel. How do I make it so
/*
	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->PutAllowMoveSchedule(EXSCHEDULELib::exMiddleClick);

171:
Can I get and set the width of the time bar
/*
	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->GetTimeScales()->GetItem(long(0))->PutWidth(48);

170:
How do I select the current year

/*
	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->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->GetCalendar()->Select(EXSCHEDULELib::exSelectYear);

169:
How do I select the current week 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->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->GetCalendar()->Select(EXSCHEDULELib::exSelectWeekDay);

168:
How do I select the current 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->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->GetCalendar()->Select(EXSCHEDULELib::exSelectWeek);

167:
How can I restore the layout of the panels, when user changes the width and the alignment of the panels
// 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"End Operation " );
	OutputDebugStringW( L"Operation" );
	OutputDebugStringW( L"Layout " );
	OutputDebugStringW( _bstr_t(spSchedule1->GetOnResizeControl()) );
	OutputDebugStringW( L"PaneWidth(False)" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetPaneWidth(VARIANT_FALSE)) );
}

// LayoutStartChanging event - Occurs when the control's layout is about to be changed.
void OnLayoutStartChangingSchedule1(long Operation)
{
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Start Operation " );
	OutputDebugStringW( L"Operation" );
	OutputDebugStringW( L"Layout " );
	OutputDebugStringW( _bstr_t(spSchedule1->GetOnResizeControl()) );
	OutputDebugStringW( L"PaneWidth(False)" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetPaneWidth(VARIANT_FALSE)) );
}

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveSchedule1(short Button,short Shift,long X,long Y)
{
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Layout " );
	OutputDebugStringW( _bstr_t(spSchedule1->GetOnResizeControl()) );
	OutputDebugStringW( L"PaneWidth(False)" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetPaneWidth(VARIANT_FALSE)) );
}


166:
Is it possibly to set the column width of the group/person using the api

/*
	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::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->GetGroups()->GetItem(long(1))->PutWidth(24);
spSchedule1->EndUpdate();

165:
When viewing the schedule by week or month and the month ends during the week (July 31, Tuesday -> August 1, Wednesday), the days continue down as a new week 'row'. When there is a change in month, is it possible to still show the full week without that break (compact)

/*
	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);
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2012,5,23,0,00,00).operator DATE());
	var_Calendar->PutSelection("month(value) in (5,6)");
spSchedule1->PutShowViewCompact(EXSCHEDULELib::exViewCalendarCompact);
spSchedule1->EndUpdate();

164:
I want to change the default event tooltip. How can I do 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->PutDefaultEventTooltip(_bstr_t("<b>BEGIN:</b> <%=%1%><br><b>END:</b>: <%=%2%><br><b>LENGTH:</b> <%=((1:=int(0:= (date(%2)-date(%1)))) != 0 ? (=:1 + ' day(s)') ") +
": '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != 0 ? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + (" +
"(1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')%>");

163:
How can I select the entire week for 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();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutSelection(COleDateTime(2012,3,5,0,00,00).operator DATE());
	var_Calendar->PutSelection("(int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday(#3/5/2012#)-1)/7))");
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
spSchedule1->EndUpdate();

162:
I have noticed that I can drag bars from All-Day header to time-zone and reverse. Is it possible to prevent 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->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->PutAllowUpdateAllDayFlag(VARIANT_FALSE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,23,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value in (#5/23/2012#,#5/24/2012#,#5/25/2012#)");
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())->PutExtraLabel(L"<sha>dentist");
	var_Events->Add(COleDateTime(2012,5,24,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,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutShowSelectEvent(VARIANT_FALSE);
spSchedule1->EndUpdate();

161:
When an all-day event stretches over multiple days (ex. Monday thru Friday), is it possible to have that display as a continuous bar across those days instead of separate bars on each 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();
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);
spSchedule1->PutShowAllDayHeader(VARIANT_TRUE);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,23,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value in (#5/23/2012#,#5/24/2012#,#5/25/2012#)");
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())->PutExtraLabel(L"<sha>dentist");
	var_Events->Add(COleDateTime(2012,5,24,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,24,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutShowSelectEvent(VARIANT_FALSE);
spSchedule1->EndUpdate();

160:
If I double click to a scheduled event and enter text, how can I read this newly entered text (i.e. what is its corresponding field)

// 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( _bstr_t(spSchedule1->GetEventFromPoint(-1,-1)) );
}

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())->PutExtraLabel(L"editable");
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutShowSelectEvent(VARIANT_FALSE);
spSchedule1->EndUpdate();

159:
Is it possible to show the date's header with a shadow

/*
	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->PutHeaderDayLongLabel(L"<sha><%dddd%>, <%mmmm%> <%d%>, <%yyyy%>");
spSchedule1->GetCalendar()->PutOnSelectDate(EXSCHEDULELib::exEnsureVisibleDate);
spSchedule1->PutAllowResizeSchedule(EXSCHEDULELib::exDisallow);

158:
We need to highlight a day for example no booking/disabling for that day, is the timezone good choice (method 3)

/*
	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,6,27,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#6/26/2012#,#6/27/2012#,#6/28/2012#)");
spSchedule1->PutAllowMultiDaysEvent(VARIANT_FALSE);
spSchedule1->GetNonworkingPatterns()->Add(1,EXSCHEDULELib::exPatternSolid)->GetPattern()->PutColor(RGB(240,240,240));
spSchedule1->GetNonworkingTimes()->Add(L"value in (#6/27/2012#)",L"00:00",L"24:00",1);
spSchedule1->PutShowNonworkingTime(EXSCHEDULELib::exShowNonworkingTimeBack);
spSchedule1->GetCalendar()->PutDisableZoneFormat(L"value in (#6/27/2012#)");

157:
We need to highlight a day for example no booking for that day, is the timezone good choice (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(2012,6,27,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#6/26/2012#,#6/27/2012#,#6/28/2012#)");
spSchedule1->GetNonworkingPatterns()->Add(1,EXSCHEDULELib::exPatternSolid)->GetPattern()->PutColor(RGB(240,240,240));
spSchedule1->GetNonworkingTimes()->Add(L"value in (#6/27/2012#)",L"00:00",L"24:00",1);
spSchedule1->PutShowNonworkingTime(EXSCHEDULELib::exShowNonworkingTimeBack);

156:
We need to highlight a day for example no booking for that day, is the timezone good choice (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(2012,6,27,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#6/26/2012#,#6/27/2012#,#6/28/2012#)");
EXSCHEDULELib::IMarkZonePtr var_MarkZone = spSchedule1->GetMarkZones()->Add(L"zone",COleDateTime(2012,6,27,0,00,00).operator DATE(),COleDateTime(2012,6,28,0,00,00).operator DATE());
	var_MarkZone->PutBackColor(RGB(240,240,240));
	var_MarkZone->GetPattern()->PutType(EXSCHEDULELib::exPatternEmpty);
spSchedule1->PutShowMarkZone(EXSCHEDULELib::exShowMarkZonesBack);

155:
Is is possible to change the background color for a specific 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();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2012,6,27,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#6/26/2012#,#6/27/2012#,#6/28/2012#)");
EXSCHEDULELib::IMarkZonePtr var_MarkZone = spSchedule1->GetMarkZones()->Add(L"zone",COleDateTime(2012,6,27,0,00,00).operator DATE(),COleDateTime(2012,6,28,0,00,00).operator DATE());
	var_MarkZone->PutBackColor(RGB(240,240,240));
	var_MarkZone->GetPattern()->PutType(EXSCHEDULELib::exPatternEmpty);
spSchedule1->PutShowMarkZone(EXSCHEDULELib::exShowMarkZonesBack);

154:
I want to know how can I call a user define form when editing a time slot
// 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"End exScheduleResize(5)" );
	OutputDebugStringW( L"Operation" );
}

// LayoutStartChanging event - Occurs when the control's layout is about to be changed.
void OnLayoutStartChangingSchedule1(long Operation)
{
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Start exScheduleResize(5)" );
	OutputDebugStringW( L"Operation" );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSingleSel(VARIANT_TRUE);
	var_Calendar->PutOnSelectDate(EXSCHEDULELib::exEnsureVisibleDate);
spSchedule1->PutClipToSel(VARIANT_TRUE);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMoveGroup(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeSchedule(EXSCHEDULELib::exLeftClick);
spSchedule1->PutAllowCreateEvent(EXSCHEDULELib::exDisallow);

153:
Can we lock the scroll bars so that it only scrolls within the selected 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();
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#)");
	var_Calendar->PutSingleSel(VARIANT_TRUE);
	var_Calendar->PutOnSelectDate(EXSCHEDULELib::exEnsureVisibleDate);
spSchedule1->PutClipToSel(VARIANT_TRUE);
spSchedule1->PutDayViewWidth(-1);
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());

152:
Is it possible to specify the dates to be printed to a single page

/*
	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(116);
spSchedule1->PutDayViewHeight(116);
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("Range=month(value)=6;FitToPage=On");
	var_Print->PutPrintExt(((EXSCHEDULELib::ISchedulePtr)(spSchedule1)));
	var_Print->Preview();

151:
Is it possible to specify the dates to be printed

/*
	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(116);
spSchedule1->PutDayViewHeight(116);
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("Range=month(value)=6");
	var_Print->PutPrintExt(((EXSCHEDULELib::ISchedulePtr)(spSchedule1)));
	var_Print->Preview();

150:
Does your control support Fit-To-Page, while printing

/*
	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->Preview();

149:
Does your control support Print and Print-Preview

/*
	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->PutPrintExt(((EXSCHEDULELib::ISchedulePtr)(spSchedule1)));
	var_Print->Preview();

148:
How can I specify the height (time slot) of the day to be larger
/*
	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->PutClipToSel(VARIANT_TRUE);
spSchedule1->PutDayViewHeight(1024);
spSchedule1->PutDayViewWidth(-1);
spSchedule1->GetTimeScales()->GetItem(long(0))->PutMinorTimeRuler(L"00:05");
spSchedule1->EndUpdate();

147:
How can I prevent resizing the schedule view, when a new date is selected
/*
	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->PutOnSelectDate(EXSCHEDULELib::exEnsureVisibleDate);
	var_Calendar->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
	var_Calendar->PutSingleSel(VARIANT_TRUE);
spSchedule1->PutDayViewWidth(48);

146:
How do I get notified once the user moves an event
// UpdateEvent event - Notifies your application once the event changes the starting or ending margins.
void OnUpdateEventSchedule1(LPDISPATCH Ev)
{
	/*
		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"UpdateEvent" );
	OutputDebugStringW( L"Ev" );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
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));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
		var_Event->PutEditable(EXSCHEDULELib::exEditCaption);
		var_Event->PutCaption(L"your caption");
	EXSCHEDULELib::IEventPtr var_Event1 = var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE());
		var_Event1->PutEditable(EXSCHEDULELib::exEditCaption);
		var_Event1->PutCaption(L"other caption");

145:
Can You give me an example for the event handler when a user double clicks an appointment
// DblClick event - Occurs when the user dblclk the left mouse button over an object.
void OnDblClickSchedule1(short Shift,long X,long Y)
{
	/*
		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();
	ObjectPtr e = ((ObjectPtr)(spSchedule1->GetEventFromPoint(-1,-1)));
	OutputDebugStringW( L"Start:" );
	OutputDebugStringW( L"e" );
	OutputDebugStringW( L"End:" );
	OutputDebugStringW( L"e" );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutAllowEditEvent(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowToggleSchedule(EXSCHEDULELib::exDisallow);
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#,#6/13/2001#)");
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());

144:
Nothing is shown in the schedule view, if I use the Selection property. 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();
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#,#6/13/2001#)");

143:
Is it possible to lock a date/day, so no events can be created, moved, and so on

/*
	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#,#6/13/2001#)");
	var_Calendar->PutDisableZoneFormat(L"value = #6/12/2001#");
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());

142:
How can I show the grid lines for minor and major rules in the schedule view

/*
	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::exScheduleMajorTimeScaleStyle,RGB(0,0,0));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMajorTimeRulerColor,RGB(192,192,192));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleTimeScaleMajorRulerStyle,RGB(0,0,0));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleTimeScaleMajorRulerColor,RGB(192,192,192));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMinorTimeScaleStyle,RGB(3,0,0));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleTimeScaleMinorRulerStyle,RGB(3,0,0));

141:
Is it possible to show the grid lines for minor rulers too in the schedule view

/*
	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::exScheduleMinorTimeScaleStyle,RGB(3,0,0));

140:
How can I change the style and colors to show the grid lines

/*
	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::exScheduleMajorTimeScaleStyle,RGB(48,0,0));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMajorTimeRulerColor,RGB(255,0,0));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleTimeScaleMajorRulerStyle,RGB(3,0,0));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleTimeScaleMajorRulerColor,RGB(255,0,0));

139:
How can I show a solid line rather than dot lines in the schedule view

/*
	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::exScheduleMajorTimeScaleStyle,RGB(48,0,0));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMajorTimeRulerColor,RGB(0,0,0));

138:
Is it possible to hide or change the lines in the schedule view

/*
	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::exScheduleMajorTimeScaleStyle,-1);

137:
Is there a possiblity to lock an event, so it can't be moved or edited

/*
	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,27,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,27,10,00,00).operator DATE(),COleDateTime(2012,6,27,11,30,00).operator DATE());
		var_Event->GetBodyPattern()->PutType(EXSCHEDULELib::exPatternBDiagonal);
		var_Event->PutMovable(VARIANT_FALSE);
		var_Event->PutResizable(EXSCHEDULELib::exNoResizable);
		var_Event->PutSelectable(VARIANT_FALSE);
		var_Event->PutEditable(EXSCHEDULELib::exNoEditable);
		var_Event->PutExtraLabel(L"locked");
	var_Events->Add(COleDateTime(2012,6,27,13,30,00).operator DATE(),COleDateTime(2012,6,27,15,30,00).operator DATE());

136:
Is it possible to load a PNG file on the control's background ( /com 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->PutTemplate(L"Picture = LoadPicture(`c:\\exontrol\\images\\card.png`)");

135:
What is the Event.UserData property used for

/*
	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,27,0,00,00).operator DATE());
spSchedule1->PutDefaultEventTooltip(_bstr_t("Start: <%=%1%><br>End: <%=%2%><br>Duration: <%=((1:=int(0:= (date(%2)-date(%1)))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' :") +
" '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != 0 ? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1" +
")*60)) != 0 ? =:1 + ' min(s)' : '')%><b><%=(len(%6) ? `<br>UserData: `+ %6 : ``)%></b>");
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,6,27,11,00,00).operator DATE(),COleDateTime(2012,6,27,12,30,00).operator DATE())->PutUserData("Any extra data associated with the event");
	var_Events->Add(COleDateTime(2012,6,27,11,30,00).operator DATE(),COleDateTime(2012,6,27,13,30,00).operator DATE());

134:
Is there also an event for when a user selects another month in the date-picker control
// 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"End exCalendarDateChange(3)" );
	OutputDebugStringW( L"Operation" );
	OutputDebugStringW( L"Currently browsing date:" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetCalendar()->GetDate()) );
}

// LayoutStartChanging event - Occurs when the control's layout is about to be changed.
void OnLayoutStartChangingSchedule1(long Operation)
{
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Start exCalendarDateChange(3)" );
	OutputDebugStringW( L"Operation" );
	OutputDebugStringW( L"Previously browsing date:" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetCalendar()->GetDate()) );
}


133:
How can I display the time-zone behind or back (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->GetCalendar()->PutSelection(COleDateTime(2012,6,27,0,00,00).operator DATE());
EXSCHEDULELib::IMarkZonePtr var_MarkZone = spSchedule1->GetMarkZones()->Add(L"zone",COleDateTime(2012,6,27,10,30,00).operator DATE(),COleDateTime(2012,6,27,13,00,00).operator DATE());
	var_MarkZone->PutLongLabel(L"zone");
	EXSCHEDULELib::IPatternPtr var_Pattern = var_MarkZone->GetPattern();
		var_Pattern->PutType(EXSCHEDULELib::exPatternBDiagonal);
		var_Pattern->PutColor(RGB(40,40,40));
spSchedule1->PutShowMarkZone(EXSCHEDULELib::exShowMarkZonesSemi);
spSchedule1->GetEvents()->Add(COleDateTime(2012,6,27,11,00,00).operator DATE(),COleDateTime(2012,6,27,12,30,00).operator DATE());

132:
How can I display the time-zone behind or back (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->GetCalendar()->PutSelection(COleDateTime(2012,6,27,0,00,00).operator DATE());
spSchedule1->GetMarkZones()->Add(L"zone",COleDateTime(2012,6,27,10,30,00).operator DATE(),COleDateTime(2012,6,27,13,00,00).operator DATE())->PutLongLabel(L"zone");
spSchedule1->PutShowMarkZone(EXSCHEDULELib::exShowMarkZonesBack);
spSchedule1->GetEvents()->Add(COleDateTime(2012,6,27,11,00,00).operator DATE(),COleDateTime(2012,6,27,12,30,00).operator DATE());

131:
How can I add a 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->GetCalendar()->PutSelection(COleDateTime(2012,6,27,0,00,00).operator DATE());
spSchedule1->GetMarkZones()->Add(L"zone",COleDateTime(2012,6,27,10,30,00).operator DATE(),COleDateTime(2012,6,27,13,00,00).operator DATE())->PutLongLabel(L"zone");

130:
How can I specify a larger height for the timer, or it is possible to make it bigger

/*
	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::IAppearancePtr var_Appearance = spSchedule1->GetVisualAppearance();
	var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BC0MQAAYAQGKIYBkAKBQAGaAoDDUOQzQwAAxDGKUEwsACEIrjKCYVgOHYYQjGMZwHIUIhkGoSZKlCIRVDCKYJSzLcZAFIMRwSBiEQTmaa4W") +
"iKIgIQiUBomGahajkMoYZCYKKSCI2S4aDZCIoTPLMagxC5GJCnSJnITJCpdV7XVgWHYVSzDM6yEScZTkFqubZsW5cNwXHZ9azkQpyFRPe6bbrqfJ/X5gN64HgBfrEUo8" +
"cLxHCMKw3DKPYrkOLHS4CQjnSrLcqzDK8ax3GafZwcbqKWbmR5LUjTNR1DS9Hy3Kh8O4sSDbDqeZZpW7bNx2Xa9YQZcS5JBvfA8BwXC6JY7heR4ZIHTT9GbNc7zXQdHx" +
"LiuUZrnUEwvFYIoDjeXZuHePA+A8Hx/kuYhQD2WQqg8T4vlWbJ3nuPg+l+H5BFEASAg==");
	var_Appearance->Add(2,"CP:1 0 -3 0 3");
EXSCHEDULELib::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer1",COleDateTime(2012,5,24,11,15,00).operator DATE());
	var_MarkTime->PutBackColor(0x1000000);
	var_MarkTime->PutLine(EXSCHEDULELib::exNoLines);
	var_MarkTime->PutLabel(L"default height");
	var_MarkTime->PutLabelAlign(EXSCHEDULELib::exBottomRight);
EXSCHEDULELib::IMarkTimePtr var_MarkTime1 = spSchedule1->GetMarkTimes()->Add(L"timer2",COleDateTime(2012,5,24,13,15,00).operator DATE());
	var_MarkTime1->PutBackColor(0x2000000);
	var_MarkTime1->PutLine(EXSCHEDULELib::exNoLines);
	var_MarkTime1->PutLabel(L"larger height");
	var_MarkTime1->PutLabelAlign(EXSCHEDULELib::exBottomRight);
spSchedule1->EndUpdate();

129:
How I know what event was edited when it was edited by a user
// 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"End Operation exScheduleEditEvent(15)" );
	OutputDebugStringW( L"Operation" );
	OutputDebugStringW( L"Use the global member from LayoutStartChanging, and you got the Event being edited" );
}

// LayoutStartChanging event - Occurs when the control's layout is about to be changed.
void OnLayoutStartChangingSchedule1(long Operation)
{
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Start Operation exScheduleEditEvent(15)" );
	OutputDebugStringW( L"Operation" );
	OutputDebugStringW( L"Holds the EventFromPoint to a global member" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetEventFromPoint(-1,-1)) );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesSolid));
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,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());
spSchedule1->EndUpdate();

128:
What are timers in your exSchedule component

/*
	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::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer1",COleDateTime(2012,5,24,8,35,00).operator DATE());
	var_MarkTime->PutLabel(L"<fgcolor=808080>fixed timer");
	var_MarkTime->PutLabelAlign(EXSCHEDULELib::exTopCenter);
	var_MarkTime->GetPattern()->PutType(EXSCHEDULELib::exPatternBDiagonal);
	var_MarkTime->GetPattern()->PutColor(RGB(224,224,224));
EXSCHEDULELib::IMarkTimePtr var_MarkTime1 = spSchedule1->GetMarkTimes()->Add(L"timer2",COleDateTime(2012,5,24,10,51,00).operator DATE());
	var_MarkTime1->PutLabel(L"<fgcolor=00FF00>movable timer");
	var_MarkTime1->PutMovable(VARIANT_TRUE);
	var_MarkTime1->PutBodyEventBackColor(RGB(128,255,128));
	var_MarkTime1->PutLineColor(RGB(0,240,15));
	var_MarkTime1->PutTimeScaleLineColor(RGB(0,255,0));
	var_MarkTime1->PutTimeScaleLabel(L"");
	var_MarkTime1->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesDash));
	var_MarkTime1->PutLabel(L"<bgcolor=FFFFFF><fgcolor=00FF00><b><%hh%>:<%nn%> <%AM/PM%><br><%loc_sdate%>");
	var_MarkTime1->PutTimeScaleLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThick | EXSCHEDULELib::exLinesDot4));
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();

127:
How do I get the selected dates in the calendar panel
// 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: exScheduleSelectionChange(10)" );
	OutputDebugStringW( L"Operation" );
	OutputDebugStringW( L"Selected Event Count:" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetSelCount()) );
	OutputDebugStringW( L"First Selected Event:" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetSelEvent(0)) );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2011,1,1,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2011,1,1,10,00,00).operator DATE(),COleDateTime(2011,1,1,11,30,00).operator DATE());
	var_Events->Add(COleDateTime(2011,1,1,11,30,00).operator DATE(),COleDateTime(2011,1,1,13,30,00).operator DATE());

126:
How do I get the selected dates in the calendar panel
// 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: exCalendarSelectionChange(1)" );
	OutputDebugStringW( L"Operation" );
	EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
		OutputDebugStringW( L"Selected Date Count:" );
		OutputDebugStringW( _bstr_t(var_Calendar->GetSelCount()) );
		OutputDebugStringW( L"First Selected Date:" );
		OutputDebugStringW( _bstr_t(var_Calendar->GetSelDate(0)) );
}


125:
What is the easiest way to display a picture on my 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->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->GetPictures()->Add(L"pic1","c:\\exontrol\\images\\zipdisk.gif");
spSchedule1->GetEvents()->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,14,00,00).operator DATE())->PutPictures(L"pic1");

124:
How can I programmatically move a specified 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->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->GetEvents()->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->MoveBy("-00:15");
spSchedule1->EndUpdate();

123:
How can I edit the event but still display its margins
// AddEvent event - Notifies your application once the a new event is added.
void OnAddEventSchedule1(LPDISPATCH Ev)
{
	// Ev.Editable = 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->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));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
		var_Event->PutEditable(EXSCHEDULELib::exEditCaption);
		var_Event->PutCaption(L"your caption");
	EXSCHEDULELib::IEventPtr var_Event1 = var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE());
		var_Event1->PutEditable(EXSCHEDULELib::exEditCaption);
		var_Event1->PutCaption(L"other caption");

122:
How can I edit the events

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

/*
	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->PutDefaultEventLongLabel(L"");
spSchedule1->PutDefaultEventShortLabel(L"");
spSchedule1->PutCreateEventLabel(L"");
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2001,1,10,9,00,00).operator DATE(),COleDateTime(2001,1,10,12,30,00).operator DATE());
		var_Event->PutEditable(EXSCHEDULELib::exEditLongLabel);
		var_Event->PutLongLabel(L"just your label");
	EXSCHEDULELib::IEventPtr var_Event1 = var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE());
		var_Event1->PutEditable(EXSCHEDULELib::exEditLongLabel);
		var_Event1->PutLongLabel(L"just another label");

121:
At the moment the scheduler only displays events from 8:00 am to 3:00 pm. How do I extend this time 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->PutDayStartTime(L"07:30");
spSchedule1->PutDayEndTime(L"14:30");

120:
How does localization work

/*
	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->PutFirstWeekDay(var_Calendar->GetLocFirstWeekDay());
	var_Calendar->PutMonthNames(var_Calendar->GetLocMonthNames());
	var_Calendar->PutWeekDays(var_Calendar->GetLocWeekDays());
	var_Calendar->PutAMPM(var_Calendar->GetLocAMPM());

119:
Is it possible to limit the calendar to one month 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->PutScrollBars(EXSCHEDULELib::exNoScroll);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exDisallow);
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
	var_Calendar->PutMinDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Calendar->PutMaxDate(COleDateTime(2001,1,31,0,00,00).operator DATE());

118:
How can I display a distingue text for repetitive 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->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
spSchedule1->PutDefaultEventLongLabel(L"<%=%256%><br><%=%264? `repetitive event`:``%>");
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));
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())->PutRepetitive(L"weekday(value) = 3");
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE());

117:
How can I display the event's duration on the body of 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->PutDefaultEventLongLabel(_bstr_t("<%=%256%><br><%=((1:=int(0:= (date(%2)-date(%1)))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1") +
" + 1/24/60/60/2)*24))) != 0 ? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' :" +
" '')%>");
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));
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,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE());

116:
The sample shows how the event's body can display automatically the UserData property of 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->PutDefaultEventLongLabel(L"<%=%256%><br><%=%6%>");
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));
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())->PutUserData("UserData 1");
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE())->PutUserData("UserData 2");

115:
The sample shows how the event's body can display automatically the Caption property of 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->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));
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())->PutCaption(L"Event 1");
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE())->PutCaption(L"Event 2");

114:
The sample shows how the event's body can display automatically the group's ID, Caption and Title

/*
	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->PutDefaultEventLongLabel(L"Group's ID:<%=%4%><br>Group's Caption: <%=%262%><br>Group's Title: <%=%263%><br><%=%256%>");
spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel());
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::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);

113:
The following sample displays automatically an "All-Day-Event: " prefix for AllDayEvent 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->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
spSchedule1->PutDefaultEventLongLabel(L"<%=%3 ? `All-Day-Event: `: ``%><%=%256%>");
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));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2001,1,10,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE());

112:
How can I use the calendar's LongTimeFormat

/*
	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->PutDefaultEventLongLabel(L"<%=%257%>");
spSchedule1->PutDefaultEventShortLabel(L"<%=%257%>");
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
	var_Calendar->PutLongTimeFormat(L"<%hh%>:<%nn%>:<%ss%>");
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
spSchedule1->GetEvents()->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,11,13,00,00).operator DATE());

111:
How can I use the calendar's ShortTimeFormat. The sample displays the times in 24-hours format

/*
	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->PutDefaultEventLongLabel(L"<%=%256%>");
spSchedule1->PutDefaultEventShortLabel(L"<%=%256%>");
spSchedule1->GetTimeScales()->GetItem(long(0))->PutMajorTimeLabel(L"<%hh%>:<%nn%>");
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
	var_Calendar->PutShortTimeFormat(L"<%h%>:<%nn%>");
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
spSchedule1->GetEvents()->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE());

110:
How can I use the calendar's ShortDateFormat

/*
	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->PutDefaultEventLongLabel(L"<%=%256%>");
spSchedule1->PutDefaultEventShortLabel(L"<%=%256%>");
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
	var_Calendar->PutShortDateFormat(L"<%loc_d2%>, <%loc_m2%> <%d%>, <%yy%>");
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
spSchedule1->GetEvents()->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);

109:
How can I use the calendar's LongDateFormat

/*
	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->PutDefaultEventLongLabel(L"<%=%257%>");
spSchedule1->PutDefaultEventShortLabel(L"<%=%257%>");
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2001,1,10,0,00,00).operator DATE());
	var_Calendar->PutLongDateFormat(L"<%loc_dddd%>, <%loc_mmm%> <%d%>, <%yyyy%>");
spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarAutoHide | EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exResizePanelRight));
spSchedule1->GetEvents()->Add(COleDateTime(2001,1,10,10,00,00).operator DATE(),COleDateTime(2001,1,10,13,00,00).operator DATE())->PutAllDayEvent(VARIANT_TRUE);

108:
Is it possible to prevent updating 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->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
spSchedule1->PutAllowUpdateDisableZone(VARIANT_FALSE);
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutSelection(COleDateTime(2001,1,9,0,00,00).operator DATE());
	var_Calendar->PutDisableZoneFormat(L"value >= #1/11/2001#");
	var_Calendar->PutMinDate(COleDateTime(2001,1,1,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,13,00,00).operator DATE());
	var_Events->Add(COleDateTime(2001,1,11,10,00,00).operator DATE(),COleDateTime(2001,1,11,13,00,00).operator DATE());

107:
How can I specify that after editing the caption should be on top ( 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->PutDefaultEventLongLabel(L"");
spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel());
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutSelection(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2001,1,1,10,00,00).operator DATE(),COleDateTime(2001,1,1,13,00,00).operator DATE());
		var_Event->PutExtraLabel(L"title");
		var_Event->PutExtraLabelAlign(EXSCHEDULELib::exTopLeft);

106:
How can I specify that after editing the caption should be on top ( 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->PutDefaultEventLongLabel(L"");
spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel());
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::exLinesSolid);
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutSelection(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2001,1,1,10,00,00).operator DATE(),COleDateTime(2001,1,1,13,00,00).operator DATE());
		var_Event->PutLongLabel(L"title");
		var_Event->PutEditable(EXSCHEDULELib::exEditLongLabel);

105:
How can I get ride or hide the of the calendar's grid lines

/*
	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->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutSelection(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Calendar->PutShowGridLines(EXSCHEDULELib::exNoLines);

104:
How can I programmatically select a single date ( 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->GetCalendar()->PutSelection(COleDateTime(2012,1,1,0,00,00).operator DATE());

103:
How can I programmatically select a single date ( 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("0");
	var_Calendar->PutSelectDate(COleDateTime(2012,1,1,0,00,00).operator DATE(),VARIANT_TRUE);

102:
How can I prevent showing the Today button, 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->PutOnResizeControl(EXSCHEDULELib::exHideSplitter);
spSchedule1->GetCalendar()->PutShowTodayButton(VARIANT_FALSE);

101:
How can I display just the calendar panel, not including the schedule 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->PutOnResizeControl(EXSCHEDULELib::exHideSplitter);

100:
Is is possible to toggle the selection of dates, such the first click selects the date, the second click unselects it, and so on

/*
	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::exCalendarFit | EXSCHEDULELib::exHideSplitter | EXSCHEDULELib::exResizePanelRight));
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutAllowToggleSelectKey(EXSCHEDULELib::exLeftClick);
	var_Calendar->PutAllowSelectDate(EXSCHEDULELib::exLeftClick);
	var_Calendar->PutSingleSel(VARIANT_FALSE);

99:
How can I change the background color for selected dates in the calendar panel, so always is the same no matter if the control loses the focus

/*
	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::exCalendarSelBackColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelBackColor));
spSchedule1->PutBackground(EXSCHEDULELib::exCalendarSelForeColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelForeColor));

98:
Is it possible to specify a different background color for 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->PutBackground(EXSCHEDULELib::exCalendarBackColor,RGB(240,240,240));

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

/*
	Copy and paste the following directives to your header file as
	it defines the namespace '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->PutAppearance(EXSCHEDULELib::AppearanceEnum(0x1000000));

96:
Is it possible to prevent showing the calendar at all

/*
	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));
spSchedule1->PutScrollBars(EXSCHEDULELib::exNoScroll);

95:
How can I change the visual aspect only for a specified 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->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
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());
	var_Events->Add(COleDateTime(2012,6,20,10,30,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutBodyBackColor(0x1000000);
	var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE());
spSchedule1->PutDefaultEventPadding(EXSCHEDULELib::exPaddingAll,2);

94:
How can I change the visual aspect of the 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->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleCreateEventBackColor,0x1000000);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleUpdateEventsBackColor,0x1000000);
spSchedule1->PutBodyEventBackColor(0x1000000);

93:
Is there any event to let me know once an edit has been edited

// 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"End exScheduleEditEvent(15)" );
	OutputDebugStringW( L"Operation" );
}

// LayoutStartChanging event - Occurs when the control's layout is about to be changed.
void OnLayoutStartChangingSchedule1(long Operation)
{
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Start exScheduleEditEvent(15)" );
	OutputDebugStringW( L"Operation" );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutAllowEditEvent(EXSCHEDULELib::exLeftClick);
spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::exDisallow);
spSchedule1->PutDefaultEventLongLabel(L"");
spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel());
spSchedule1->PutVisualDesign(_bstr_t("gBFLBWIgBAEHhEJAEGg7IAUHXI6g0MAAmhULikUCIgg6sh4AgRCJ0Ui8HjKTj6AADACAxRDAMgBQKAAzQFAYZhpBaERiHEZoJhUAIIRZGMQxXAcMQvDSKQRhEAoJDgN") +
"4kQKNYyQYAAYhuGaPBhASQJUhkMocR7HMygBJkUABEyYaFHdIFCQ1DykJzkCbqAgkMYeDRHQxTdQsEgpDQMIRpGA5eb+XgAV4/cTSYKQahLMizJYGUYLHgma5tTTWcTV" +
"PLVFRrJiTYRlKTJOjCCQ0ATdUyzPAeCRzQ6QJ5kUZ6CgSUpGRjkhY6agkF6VVxCNg2BT8KzxRoAKhiGpKHpaCaUQLWMB5PaoAR8fLYAA2B6bDhGaa2XAAFr2VZkWSUBB" +
"pnSWo8kYIg1D6NBuGyIhYnCXx5kuHZcjUAAOAcDxbF2L5mmKPIOl2Ox7l2XJVGAfRMh8CABiyYpgi8E5pFSRp4DQHBkiKOQug4ChpmqPRoiAco6HePxJDUXQAASCYpHA" +
"WpUHmGxmlwdphlwQJWncMQzFwXknCodJcEcXRiHYUIYCwAByhyaB1lAeReDgTgAHwU44GoHB3lUJgFi2BgYCYGYGgkFx2C2ax+lARI9FKA5YHiMR2guHBHlUPIChuBRJ" +
"k4XIjiUKg8GsY5ohkZoQh2dJ6AYZxfFkHZoF2E5gkQOBPgMIJJHwS5WJmMRvhINwRHKAAdCieZyHEHgxEAaQYkcQZUHIGRUnQJIuAGEAxAgTYclGFBRAMCgQhgTZnEII" +
"Q0AweIdCYZYGgaIZbDaTJbiKaJKDaDojmkChGhKI5bDoHoWD+aIqDiPImmmSh2h6J5qAqBoi3yeghjCIwpnIeoqiqapKjaLormsCouh+IwrBqVo2i2a4KlqHItY0Fo+i" +
"+bALAaF4riuOmPjCLILCaSYxCmOpwh6MotAsRoWjMC5LDqUo1m0GxSlaNgtktlgxiuWx2mKL4tnMbpHjiboKB6ZY5m6G42muOBuluJpvjObwbkqLYxG4a5CnWOIvDubp" +
"oiyKZrG6fo3HACxWg6OwwDsYoriUGwMCMCY0iqOgnBKQ4wnsQwUFgcR8FaSJGE+fBzBqMAxkqZwikichLlKFxAEAgIA==");
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())->PutEditable(EXSCHEDULELib::exEditLongLabel);
	var_Events->Add(COleDateTime(2012,6,20,10,30,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel);
	var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel);
spSchedule1->PutDefaultEventPadding(EXSCHEDULELib::exPaddingAll,2);

92:
I've noticed that the background of the event while editing is transparent. Is it possible to change it

/*
	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->PutAllowEditEvent(EXSCHEDULELib::exLeftClick);
spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::exDisallow);
spSchedule1->PutDefaultEventLongLabel(L"");
spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel());
spSchedule1->PutVisualDesign(_bstr_t("gBFLBWIgBAEHhEJAEGg41hhjNcHhgAE0KhcTiYREEHDMMgRCJ0Ti0ShEGhiAADACAxRDAMgBQKAAzQFAYbhsGCGAAGEZBQgmFgAQhFcZQSKUOQTDKMIziaQIRDINQlS") +
"TJcQjKKEUQTFiXIyAKL5CgkBYJBrNM5SFIAEQSKA0TDOQ5To5jEBzIxIIjaJhoNoJChNU4TIDELphECdYqUCq6cp2XgAJhYNhWHYgAIjM60LRtIAELq2bpvXAACCXHal" +
"azsAA+bxvK67cAAd5/YBgOBAAaGC4NQ7EAANHC8Mw3DgAGLkORZHigACzS7MMxzIACQx3HqfaAABK6HomS5NUTTNR0TLNAy3HqWZpsOYZBima4lRTHNxxTBMIz3Bp+YI" +
"4DgC5FnOCx6jkXY5DcSxlkOGxujMWo6DaCwFhOKzgFeOw1lAAoXjuXpvngAAQBAgI");
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())->PutEditable(EXSCHEDULELib::exEditLongLabel);
	var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel);
	var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleEditEventBackColor,RGB(255,0,0));

91:
How can I edit the Event.LongLabel property of the Event rather than ExtraLabel

/*
	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->PutAllowEditEvent(EXSCHEDULELib::exLeftClick);
spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::exDisallow);
spSchedule1->PutDefaultEventLongLabel(L"");
spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel());
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())->PutEditable(EXSCHEDULELib::exEditLongLabel);
	var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel);
	var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel);

90:
Is it possible to edit the event at a single click rather than double click

/*
	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->PutAllowEditEvent(EXSCHEDULELib::exLeftClick);
spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::exDisallow);
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());
	var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE());
	var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE());

89:
How can I prevent editing the 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->PutAllowEditEvent(EXSCHEDULELib::exDisallow);

88:
How can I prevent selecting the 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->PutAllowSelectEvent(EXSCHEDULELib::exDisallow);

87:
The event gets blue when selected. It is possible to draw a frame instead

/*
	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::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesSolid));

86:
Is there an event that fires when the user selects a different day/week/month
// 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" );
	OutputDebugStringW( L"should be on  exCalendarSelectionChange(1)" );
}

// LayoutStartChanging event - Occurs when the control's layout is about to be changed.
void OnLayoutStartChangingSchedule1(long Operation)
{
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Operation" );
	OutputDebugStringW( L"should be on  exCalendarSelectionChange(1)" );
}


85:
Can I use and display just the Caption of 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->PutDefaultEventLongLabel(L"<%=%5%>");
spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel());
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())->PutCaption(L"caption 1");
	var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutCaption(L"caption 2");
	var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE())->PutCaption(L"caption 3");

84:
How can I use the Caption property of 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->PutDefaultEventLongLabel(L"<%=%256%><br><b><%=%5%>");
spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel());
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())->PutCaption(L"caption 1");
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE());
		var_Event->PutLongLabel(L"");
		var_Event->PutExtraLabel(L"<%=%5%>");
		var_Event->PutCaption(L"caption 2");
	EXSCHEDULELib::IEventPtr var_Event1 = var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE());
		var_Event1->PutLongLabel(L"<%=%256%><br><b><%=%5%><br><fgcolor=808080>another text");
		var_Event1->PutCaption(L"caption 3");

83:
Is it possible to display a view of appointments with more than one person

/*
	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,6,20,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"Mihai");
		var_Group->PutEventBackColor(RGB(255,0,0));
		var_Group->PutHeaderForeColor(var_Group->GetEventBackColor());
		var_Group->PutVisible(VARIANT_TRUE);
		var_Group->PutTitle(var_Group->GetCaption());
	EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"Dave");
		var_Group1->PutEventBackColor(RGB(0,255,0));
		var_Group1->PutHeaderForeColor(var_Group1->GetEventBackColor());
		var_Group1->PutVisible(VARIANT_TRUE);
		var_Group1->PutTitle(var_Group1->GetCaption());
	EXSCHEDULELib::IGroupPtr var_Group2 = var_Groups->Add(3,L"Enrike");
		var_Group2->PutEventBackColor(RGB(128,128,255));
		var_Group2->PutHeaderForeColor(var_Group2->GetEventBackColor());
		var_Group2->PutVisible(VARIANT_TRUE);
		var_Group2->PutTitle(var_Group2->GetCaption());
spSchedule1->PutDefaultEventLongLabel(L"<%=%256%><br><%=%263%>");
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,6,20,10,00,00).operator DATE(),COleDateTime(2012,6,20,13,30,00).operator DATE())->PutGroupID(1);
	var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,30,00).operator DATE())->PutGroupID(2);
	var_Events->Add(COleDateTime(2012,6,20,13,30,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE())->PutGroupID(3);
spSchedule1->EndUpdate();

82:
How can I prevent selecting more dates in the schedule view
/*
	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->PutScrollBars(EXSCHEDULELib::exNoScroll);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exDisallow);
spSchedule1->GetCalendar()->PutSingleSel(VARIANT_TRUE);

81:
How can I get ride of the control's scroll bars

/*
	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->PutScrollBars(EXSCHEDULELib::exNoScroll);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exDisallow);

80:
I am hiding the Calendar section of the control, the question is how can I select another date in the scheduler

/*
	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));
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2001,1,1,0,00,00).operator DATE());

79:
How can I add an event to indicate the Easter Sunday

/*
	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->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutSelection("month(value) in (3,4)");
	var_Calendar->GetHighlightEvent()->PutBackColor(RGB(128,128,128));
	var_Calendar->PutShowYearScroll(VARIANT_TRUE);
spSchedule1->PutBackground(EXSCHEDULELib::exCalendarSelBackColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelBackColor));
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleBorderSelColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelBackColor));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE());
		var_Event->PutAllDayEvent(VARIANT_TRUE);
		var_Event->PutRepetitive(_bstr_t("not(month(value) in (3,4,5)) ? 0 : ( floor(value)=(2:=floor(date(dateS('3/1/' + year(value)) + ((1:=(((255 - 11 * (year(value) ") +
"mod 19)) - 21) mod 30) + 21) + (=:1 > 48 ? -1 : 0) + 6 - ((year(value) + int(year(value) / 4)) + =:1 + (=:1 > 48 ? -1 : 0) + 1) " +
"mod 7)))))");
		var_Event->PutLongLabel(L"EASTER of <%=year(%1)%> falls in<br><%=%1%>");
		var_Event->PutShortLabel(var_Event->GetLongLabel());

78:
I need a repetitive event happens every n-days, and stops after m-times. Can your control handle this

/*
	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::LinesStyleEnum(EXSCHEDULELib::exLinesThick | EXSCHEDULELib::exLinesSolid));
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutSelection("month(value) = 6");
	var_Calendar->GetHighlightEvent()->PutFontSize(10);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE());
		var_Event->PutRepetitive(L"(value >= (0:=#6/1/2012#)) and ( (value - =:0) mod (1:=5) = 0) and (value-=:0) < (3*=:1)");
		var_Event->PutSelected(VARIANT_TRUE);

77:
How can I add a repetitive event to occur every n 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->PutSelectEventStyle(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThick | EXSCHEDULELib::exLinesSolid));
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutSelection("month(value) = 6");
	var_Calendar->GetHighlightEvent()->PutFontSize(10);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE());
		var_Event->PutRepetitive(L"value >= #6/1/2012# and ( (value - #6/1/2012#) mod 5 = 0)");
		var_Event->PutSelected(VARIANT_TRUE);

76:
I am using the AutoHide option, just wondering if there is any event that notifies once the calendar panel shows or hides
// 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"End exLayoutCalendarAutoHide(7)" );
	OutputDebugStringW( L"Operation" );
}

// LayoutStartChanging event - Occurs when the control's layout is about to be changed.
void OnLayoutStartChangingSchedule1(long Operation)
{
	EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
	OutputDebugStringW( L"Start exLayoutCalendarAutoHide(7)" );
	OutputDebugStringW( L"Operation" );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);

75:
Is it possible to display the same event on multiple 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->PutSelectEventStyle(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThick | EXSCHEDULELib::exLinesSolid));
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutSelection(COleDateTime(2012,1,1,0,00,00).operator DATE());
	var_Calendar->PutSelection("month(value) = 6");
	var_Calendar->GetHighlightEvent()->PutFontSize(10);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE());
		var_Event->PutRepetitive(L"value in (#6/8/2012#,#6/11/2012#,#6/20/2012#)");
		var_Event->PutSelected(VARIANT_TRUE);

74:
How can I change the selection background color so it is the same if the control loses the focus

/*
	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->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutSelection(COleDateTime(2012,6,12,0,00,00).operator DATE());
	var_Calendar->GetHighlightEvent()->PutFontSize(10);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
spSchedule1->GetEvents()->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE());
spSchedule1->PutBackground(EXSCHEDULELib::exCalendarSelBackColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelBackColor));

73:
How can I add a repetitive event so it occurs every Monday

/*
	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->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutSelection("month(value) = 6");
	EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent();
		var_Highlight->PutFontSize(10);
		var_Highlight->PutBackColor(RGB(128,128,128));
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));
EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents();
	var_Events->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE())->PutRepetitive(L"weekday(value) = 1");

72:
How can I select the current 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();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutSelection("month(value) = month(date(``))");
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));

71:
How can I select the next two 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();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutSelection("(value - int(date(``))) in (1,2,0)");
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));

70:
How can I select the last two 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();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutSelection("(int(date(``)) - value) in (1,2,0)");
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));

69:
How can I select the current 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();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutSelection("(int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday(date(``))-1)/7))");
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));

68:
Is it possible to highlight or change the background or foreground color for the today date in the schedule 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();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday);
	var_Calendar->PutSelection(_bstr_t("month(value) = month(date(``)) and (int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday") +
"(date(``))-1)/7))");
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);
spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240));

67:
How can I display no working/non-working days 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();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutNonworkingDays(0);
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);

66:
The schedule displays a blue border around the selected dates. How can I get ride of 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();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutShowNonMonthDays(VARIANT_FALSE);
	var_Calendar->PutSelection(COleDateTime(2012,6,18,0,00,00).operator DATE());
spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines);

65:
The calendar panel shows days that belongs to another month. How can I display just the days within the current 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->GetCalendar()->PutShowNonMonthDays(VARIANT_FALSE);

64:
Is it possible to show the non-working days with a solid color instead

/*
	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,6,14,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#6/14/2012#,#6/15/2012#,#6/16/2012#,#6/17/2012#)");
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	var_Calendar->PutNonworkingDaysPattern(EXSCHEDULELib::exPatternSolid);
	var_Calendar->PutNonworkingDaysColor(RGB(224,224,224));

63:
How can I display the now-working days in the schedule panel too

/*
	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,6,14,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#6/14/2012#,#6/15/2012#,#6/16/2012#,#6/17/2012#)");
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
spSchedule1->GetNonworkingTimes()->Add(L"1",L"00:00",L"00:00",-1);

62:
How can I make the control read-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->PutAllowCreateEvent(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMoveEvent(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowResizeEvent(EXSCHEDULELib::exDisallow);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exLeftClick);
spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::exDisallow);
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->GetCalendar()->PutSelection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)");
spSchedule1->GetEvents()->Add(COleDateTime(2012,5,25,9,30,00).operator DATE(),COleDateTime(2012,5,25,13,00,00).operator DATE());

61:
How can I check/uncheck a group, so it is visible after I add it

/*
	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->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);
spSchedule1->GetGroups()->Add(1,L"Pro")->PutVisible(VARIANT_TRUE);

60:
The drop down button to show groups is not visible, even I set the DisplayGroupingButton. What Can I do

/*
	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->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);

59:
It is possible to translate "All" to "Todos" or to something else

/*
	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->PutDescription(EXSCHEDULELib::exGroupBarAll,L"(todos)");
spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE);
spSchedule1->PutShowGroupingEvents(VARIANT_TRUE);
spSchedule1->GetGroups()->Add(1,L"Pro");

58:
How can I remove the control's scroll bars

/*
	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->PutScrollBars(EXSCHEDULELib::exNoScroll);

57:
How can I select a 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->GetCalendar()->PutSelection("month(value) = month(date(``))");

56:
How can I display two or more dates in the scheduler (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(2012,5,24,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in ( #5/24/2012#, #5/25/2012# )");

55:
How can I display two or more dates in the scheduler (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("0");
	var_Calendar->PutSelectDate(COleDateTime(2012,5,24,0,00,00).operator DATE(),VARIANT_TRUE);
	var_Calendar->PutSelectDate(COleDateTime(2012,5,25,0,00,00).operator DATE(),VARIANT_TRUE);

54:
How can I define a different color for nonworking part for different 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->BeginUpdate();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2012,5,21,0,00,00).operator DATE());
	var_Calendar->PutSelection("(value >= #05/21/2012#) and (value <= #05/25/2012#)");
	var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday);
EXSCHEDULELib::INonworkingPatternsPtr var_NonworkingPatterns = spSchedule1->GetNonworkingPatterns();
	var_NonworkingPatterns->Add(1234,EXSCHEDULELib::exPatternBDiagonal)->GetPattern()->PutColor(RGB(255,0,0));
	var_NonworkingPatterns->Add(1235,EXSCHEDULELib::exPatternBDiagonal)->GetPattern()->PutColor(RGB(0,255,0));
	var_NonworkingPatterns->Add(1236,EXSCHEDULELib::exPatternBDiagonal)->GetPattern()->PutColor(RGB(0,0,255));
	EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern = var_NonworkingPatterns->Add(1237,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternCross));
		var_NonworkingPattern->GetPattern()->PutColor(RGB(128,128,128));
		var_NonworkingPattern->GetPattern()->PutFrameColor(RGB(64,64,64));
		var_NonworkingPattern->PutBackColor(RGB(255,255,0));
EXSCHEDULELib::INonworkingTimesPtr var_NonworkingTimes = spSchedule1->GetNonworkingTimes();
	var_NonworkingTimes->Add(L"weekday(value) in (0,1)",L"10:00",L"11:45",1234);
	var_NonworkingTimes->Add(L"weekday(value) = 2",L"00:00",L"08:45",1235);
	var_NonworkingTimes->Add(L"weekday(value) = 2",L"15:00",L"24:00",1235);
	var_NonworkingTimes->Add(L"weekday(value) in (3,5)",L"12:15",L"13:00",1236);
	var_NonworkingTimes->Add(L"weekday(value) = 4",L"13:30",L"15:00",1237);
spSchedule1->PutShowNonworkingTime(EXSCHEDULELib::exShowNonworkingTimeSemi);
spSchedule1->EndUpdate();

53:
Is it possible to show both nonworking and the events, using semi-transparent color

/*
	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,5,24,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)");
EXSCHEDULELib::INonworkingPatternsPtr var_NonworkingPatterns = spSchedule1->GetNonworkingPatterns();
	var_NonworkingPatterns->Add(1234,EXSCHEDULELib::exPatternBrick);
	EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern = var_NonworkingPatterns->Add(9871,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard));
		var_NonworkingPattern->PutBackColor(RGB(255,0,0));
	EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern1 = var_NonworkingPatterns->Add(9872,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard));
		var_NonworkingPattern1->PutBackColor(RGB(255,255,0));
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",9871);
	var_NonworkingTimes->Add(L"weekday(value) = 4",L"12:00",L"12:35",9872);
spSchedule1->GetEvents()->Add(COleDateTime(2012,5,25,9,30,00).operator DATE(),COleDateTime(2012,5,25,13,00,00).operator DATE());
spSchedule1->PutShowNonworkingTime(EXSCHEDULELib::exShowNonworkingTimeSemi);

52:
Is it possible to show the nonworking part behind, on the back

/*
	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,5,24,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)");
EXSCHEDULELib::INonworkingPatternsPtr var_NonworkingPatterns = spSchedule1->GetNonworkingPatterns();
	var_NonworkingPatterns->Add(1234,EXSCHEDULELib::exPatternBrick);
	EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern = var_NonworkingPatterns->Add(9871,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard));
		var_NonworkingPattern->PutBackColor(RGB(255,0,0));
	EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern1 = var_NonworkingPatterns->Add(9872,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard));
		var_NonworkingPattern1->PutBackColor(RGB(255,255,0));
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",9871);
	var_NonworkingTimes->Add(L"weekday(value) = 4",L"12:00",L"12:35",9872);
spSchedule1->GetEvents()->Add(COleDateTime(2012,5,25,9,30,00).operator DATE(),COleDateTime(2012,5,25,13,00,00).operator DATE());
spSchedule1->PutShowNonworkingTime(EXSCHEDULELib::exShowNonworkingTimeBack);

51:
Can you explain how the non working day patterns work and how to define for different days of the 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();
EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar();
	var_Calendar->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
	var_Calendar->PutSelection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)");
EXSCHEDULELib::INonworkingPatternsPtr var_NonworkingPatterns = spSchedule1->GetNonworkingPatterns();
	var_NonworkingPatterns->Add(1234,EXSCHEDULELib::exPatternBrick);
	EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern = var_NonworkingPatterns->Add(9871,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard));
		var_NonworkingPattern->PutBackColor(RGB(255,0,0));
	EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern1 = var_NonworkingPatterns->Add(9872,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard));
		var_NonworkingPattern1->PutBackColor(RGB(255,255,0));
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",9871);
	var_NonworkingTimes->Add(L"weekday(value) = 4",L"12:00",L"12:35",9872);

50:
How can I add a nonworking 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::INonworkingTimesPtr var_NonworkingTimes = spSchedule1->GetNonworkingTimes();
	var_NonworkingTimes->Add(L"1",L"00:00",L"08:45",-1);
	var_NonworkingTimes->Add(L"weekday(value) = weekday(date(``))",L"10:00",L"11:15",-1);

49:
How can I get the event from the cursor

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveSchedule1(short Button,short Shift,long X,long Y)
{
	/*
		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"Calendar.DateFromPoint" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetCalendar()->GetDateFromPoint(-1,-1)) );
	OutputDebugStringW( L"AnchorFromPoint" );
	OutputDebugStringW( spSchedule1->GetAnchorFromPoint(-1,-1) );
	OutputDebugStringW( L"DateTimeFromPoint" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetDateTimeFromPoint(-1,-1)) );
	OutputDebugStringW( L"TimeFromPoint" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetTimeFromPoint(-1,-1)) );
	OutputDebugStringW( L"TimeScaleFromPoint" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetTimeScaleFromPoint(-1,-1)) );
	OutputDebugStringW( L"GroupFromPoint" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetGroupFromPoint(-1,-1)) );
	OutputDebugStringW( L"GroupHeaderFromPoint" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetGroupHeaderFromPoint(-1,-1)) );
	OutputDebugStringW( L"MarkZoneFromPoint" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetMarkZoneFromPoint(-1,-1)) );
	OutputDebugStringW( L"NonworkingTimeFromPoint" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetNonworkingTimeFromPoint(-1,-1)) );
	OutputDebugStringW( L"MarkTimeFromPoint" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetMarkTimeFromPoint(-1,-1)) );
	OutputDebugStringW( L"EventFromPoint" );
	OutputDebugStringW( _bstr_t(spSchedule1->GetEventFromPoint(-1,-1)) );
	OutputDebugStringW( L"PictureFromPoint" );
	OutputDebugStringW( spSchedule1->GetPictureFromPoint(-1,-1) );
}

EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->BeginUpdate();
spSchedule1->PutAllowMultiDaysEvent(VARIANT_FALSE);
spSchedule1->PutAllowCreateEvent(EXSCHEDULELib::AllowKeysEnum(EXSCHEDULELib::exCTRLKey | EXSCHEDULELib::exLeftClick));
spSchedule1->PutAllowMoveEvent(EXSCHEDULELib::AllowKeysEnum(EXSCHEDULELib::exCTRLKey | EXSCHEDULELib::exLeftClick));
spSchedule1->PutAllowMoveTimeScale(EXSCHEDULELib::exLeftClick);
spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exLeftClick);
spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::AllowKeysEnum(EXSCHEDULELib::exCTRLKey | EXSCHEDULELib::exLeftClick));
spSchedule1->PutAllowResizeEvent(EXSCHEDULELib::exLeftClick);
spSchedule1->GetCalendar()->PutMaxMonthY(6);
spSchedule1->PutSelectEventStyle(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesSolid));
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
EXSCHEDULELib::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE());
	var_MarkTime->PutTimeScaleLabel(L"");
	var_MarkTime->PutLabel(L"<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>");
	var_MarkTime->PutLabelAlign(EXSCHEDULELib::exBottomRight);
	var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesDash));
	var_MarkTime->PutBodyEventBackColor(RGB(128,0,0));
	var_MarkTime->PutBodyEventForeColor(RGB(255,255,255));
	var_MarkTime->PutMovable(VARIANT_TRUE);
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();

48:
How can I show the timer only in the chart 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();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
EXSCHEDULELib::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE());
	var_MarkTime->PutLabel(L" <font ;12>timer</font> ");
	var_MarkTime->PutLabelAlign(EXSCHEDULELib::exBottomRight);
	var_MarkTime->PutTimeScaleLabel(L"");
	var_MarkTime->PutTimeScaleLine(EXSCHEDULELib::exNoLines);

47:
How can I let the user to move the timer from the cursor

/*
	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::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE());
	var_MarkTime->PutTimeScaleLabel(L"");
	var_MarkTime->PutLabel(L"<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>");
	var_MarkTime->PutLabelAlign(EXSCHEDULELib::exBottomRight);
	var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesDash));
	var_MarkTime->PutBodyEventBackColor(RGB(128,0,0));
	var_MarkTime->PutBodyEventForeColor(RGB(255,255,255));
	var_MarkTime->PutMovable(VARIANT_TRUE);
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();

46:
How can I show the timer only in the 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->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
EXSCHEDULELib::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE());
	var_MarkTime->PutTimeScaleLabel(L" <font ;12>timer</font> ");
	var_MarkTime->PutLine(EXSCHEDULELib::exNoLines);

45:
I have seen some screen shots and noticed, that you can place images on a timer. How can I do 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->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->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif");
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->PutStatusEventSize(8);
spSchedule1->PutStatusEventColor(RGB(255,255,255));
EXSCHEDULELib::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE());
	var_MarkTime->PutLabel(L"<img>pic1</img>");
	var_MarkTime->PutTimeScaleLabel(L"<fgcolor=FF0000><b><%hh%>:<%nn%> <%AM/PM%><br><c><img>1</img>");
	var_MarkTime->PutLabelAlign(EXSCHEDULELib::exMiddleRight);
	var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesDash));
	var_MarkTime->PutMovable(VARIANT_TRUE);
	var_MarkTime->GetStatusEventPattern()->PutType(EXSCHEDULELib::exPatternShadow);
	var_MarkTime->GetStatusEventPattern()->PutColor(RGB(255,0,0));
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();

44:
How can I change the timer's color

/*
	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::IMarkTimesPtr var_MarkTimes = spSchedule1->GetMarkTimes();
	EXSCHEDULELib::IMarkTimePtr var_MarkTime = var_MarkTimes->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE());
		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();

43:
Can I add multiple timers with different colors

/*
	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::IMarkTimesPtr var_MarkTimes = spSchedule1->GetMarkTimes();
	EXSCHEDULELib::IMarkTimePtr var_MarkTime = var_MarkTimes->Add(L"timer1",COleDateTime(2012,5,24,9,35,00).operator DATE());
		var_MarkTime->PutMovable(VARIANT_TRUE);
		var_MarkTime->PutStatusEventBackColor(RGB(255,0,0));
	EXSCHEDULELib::IMarkTimePtr var_MarkTime1 = var_MarkTimes->Add(L"timer2",COleDateTime(2012,5,24,13,35,00).operator DATE());
		var_MarkTime1->PutMovable(VARIANT_TRUE);
		var_MarkTime1->PutLineColor(RGB(0,255,0));
		var_MarkTime1->PutStatusEventBackColor(var_MarkTime1->GetLineColor());
		var_MarkTime1->PutTimeScaleLineColor(var_MarkTime1->GetLineColor());
		var_MarkTime1->PutTimeScaleLabel(L"<fgcolor=00FF00><b><%hh%>:<%nn%> <%AM/PM%>");
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();

42:
How can I specify a different color for the status of the event that intersects with the timer

/*
	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::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE());
	var_MarkTime->PutTimeScaleLabelAlign(EXSCHEDULELib::exTopCenter);
	var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThick | EXSCHEDULELib::exLinesHDot4));
	var_MarkTime->PutTimeScaleLine(EXSCHEDULELib::exLinesHDot4);
	var_MarkTime->PutStatusEventBackColor(RGB(255,0,0));
	var_MarkTime->PutMovable(VARIANT_TRUE);
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();

41:
How can the chart displays the events from the timer with a different color

/*
	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::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE());
	var_MarkTime->PutTimeScaleLabel(L"");
	var_MarkTime->PutLabel(L"<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>");
	var_MarkTime->PutLabelAlign(EXSCHEDULELib::exBottomRight);
	var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesDash));
	var_MarkTime->PutBodyEventBackColor(RGB(128,0,0));
	var_MarkTime->PutBodyEventForeColor(RGB(255,255,255));
	var_MarkTime->PutMovable(VARIANT_TRUE);
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();

40:
Is it possible to display the timer's label on the chart, instead time scales

/*
	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::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE());
	var_MarkTime->PutTimeScaleLabel(L"");
	var_MarkTime->PutLabel(L"<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>");
	var_MarkTime->PutLabelAlign(EXSCHEDULELib::exBottomRight);
	var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesDash));
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();

39:
How can I add a timer to the scheduler

/*
	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->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,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();

38:
Is it possible to define the small increment to 5 minutes

/*
	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"10:00");
spSchedule1->GetTimeScales()->GetItem(long(0))->PutMinorTimeRuler(L"00:05");

37:
How can I change the time format to 24 hours to be displayed in the control's 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();
EXSCHEDULELib::ITimeScalePtr var_TimeScale = spSchedule1->GetTimeScales()->GetItem(long(0));
	var_TimeScale->PutMajorTimeLabel(L"<%hh%>:<%nn%>");
	var_TimeScale->PutWidth(32);

36:
How can I change the 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->PutDayEndTime(L"13:00");
EXSCHEDULELib::ITimeScalePtr var_TimeScale = spSchedule1->GetTimeScales()->GetItem(long(0));
	var_TimeScale->PutTimeZone(L"+03:00");
	var_TimeScale->PutCaption(var_TimeScale->GetTimeZone());

35:
Is it possible to add more time scales

/*
	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"+03:00");
	var_TimeScale->PutAlignLeft(VARIANT_FALSE);
	var_TimeScale->PutCaption(L"EST <b>+03");

34:
How can I get any event to be notified if a picture or icon is clicked (Method 2)

// 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());
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=");
EXSCHEDULELib::IExPicturesPtr var_ExPictures = spSchedule1->GetPictures();
	var_ExPictures->Add(L"pic1","c:\\exontrol\\images\\card.png");
	var_ExPictures->Add(L"pic2","c:\\exontrol\\images\\diary.png");
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/pic2");
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE())->PutPictures(L"1,2/3");
	var_Events->Add(COleDateTime(2012,5,24,13,00,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE())->PutExtraPictures(L"pic2/1");
spSchedule1->EndUpdate();

33:
How can I display a tooltip for an anchor element, for instance

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveSchedule1(short Button,short Shift,long X,long Y)
{
	/*
		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();
	_bstr_t s = spSchedule1->GetAnchorFromPoint(-1,-1);
	spSchedule1->ShowToolTip(L"s","info","","+16",vtMissing);
}

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::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,45,00).operator DATE())->PutExtraLabel(L"<a remove>remove</a>");
	var_Events->Add(COleDateTime(2012,5,24,13,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE());
spSchedule1->EndUpdate();

32:
Is it possible to prevent selecting 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->PutShowSelectEvent(VARIANT_FALSE);
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,45,00).operator DATE())->PutSelected(VARIANT_TRUE);
	var_Events->Add(COleDateTime(2012,5,24,13,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE());
spSchedule1->EndUpdate();

31:
How can I get any event to be notified if a picture or icon is clicked (Method 1)

// 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" );
}

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());
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=");
EXSCHEDULELib::IExPicturesPtr var_ExPictures = spSchedule1->GetPictures();
	var_ExPictures->Add(L"pic1","c:\\exontrol\\images\\card.png");
	var_ExPictures->Add(L"pic2","c:\\exontrol\\images\\diary.png");
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())->PutExtraLabel(L"<a pic1><img>pic1:32</img></a>");
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE())->PutExtraLabel(L"<a pic2><img>pic2:48</img></a>");
	var_Events->Add(COleDateTime(2012,5,24,13,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE())->PutLongLabel(L"Start: <%=%1%><br>End: <%=%2%><br><br>Icon: <a 1><img>1</img></a> - <a 2><img>2</img></a>");
spSchedule1->EndUpdate();

30:
How can I display a picture or an icon to an 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->BeginUpdate();
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
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=");
EXSCHEDULELib::IExPicturesPtr var_ExPictures = spSchedule1->GetPictures();
	var_ExPictures->Add(L"pic1","c:\\exontrol\\images\\card.png");
	var_ExPictures->Add(L"pic2","c:\\exontrol\\images\\diary.png");
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())->PutExtraLabel(L"<img>pic1:32</img>");
	var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE())->PutExtraLabel(L"<img>pic2:48</img>");
	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,3/pic1");
	EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE());
		var_Event->PutExtraPictures(L"1/2");
		var_Event->PutPictures(L"1,pic1,2,pic2/3");
spSchedule1->EndUpdate();

29:
Is it possible to display the group's caption or ID on the event's label

/*
	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::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,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,12,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE())->PutGroupID(1);
spSchedule1->EndUpdate();

28:
How can I show the events from different groups using the same color

/*
	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);
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,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,12,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE())->PutGroupID(1);
spSchedule1->EndUpdate();

27:
Is it possible to hide the grid lines 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->GetCalendar()->PutShowGridLines(EXSCHEDULELib::exNoLines);

26:
How can I control the number of months displayed on the calendar pane
/*
	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->PutMaxMonthX(2);
	var_Calendar->PutMaxMonthY(2);

25:
I'm currently evaluating your eXSchedule product and i'm trying to have the header display the month according to local settings. How can I do that (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->PutFirstWeekDay(EXSCHEDULELib::exMonday);
	var_Calendar->PutMonthNames(L"J-A F-E M-A A-P M-A J-U J-L A-U S-P O-C N-V D-C");
	var_Calendar->PutWeekDays(L"Du Lu Ma Mi Jo Vi Si");
	var_Calendar->PutTodayCaption(L"A z i");

24:
I'm currently evaluating your eXSchedule product and i'm trying to have the header display the month according to local settings. How can I do that (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->PutFirstWeekDay(var_Calendar->GetLocFirstWeekDay());
	var_Calendar->PutMonthNames(var_Calendar->GetLocMonthNames());
	var_Calendar->PutWeekDays(var_Calendar->GetLocWeekDays());
	var_Calendar->PutAMPM(var_Calendar->GetLocAMPM());

23:
How can I show the events grouped

/*
	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 1");
		var_Group->PutVisible(VARIANT_TRUE);
		var_Group->PutEventBackColor(RGB(128,128,128));
		var_Group->PutHeaderBackColor(var_Group->GetEventBackColor());
	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->PutHeaderBackColor(var_Group1->GetEventBackColor());
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();

22:
How can I show 2 or more days in the scheduler

/*
	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("0");
	var_Calendar->PutSelectDate(COleDateTime(2012,5,24,0,00,00).operator DATE(),VARIANT_TRUE);
	var_Calendar->PutSelectDate(COleDateTime(2012,5,25,0,00,00).operator DATE(),VARIANT_TRUE);
spSchedule1->EndUpdate();

21:
Is it possible to change the first week 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->GetCalendar()->PutFirstWeekDay(EXSCHEDULELib::exMonday);

20:
How can I define the new starting / ending points of the 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->PutDayStartTime(L"07:30");
spSchedule1->PutDayEndTime(L"12:45");

19:
Is it possible to change the label to be displayed when user moves the 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());
spSchedule1->PutUpdateEventsLabel(L"Start: <%=%1%><br>End: <%=%2%>");
spSchedule1->PutUpdateEventsLabelAlign(EXSCHEDULELib::exMiddleCenter);
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();

18:
How can I change the default tooltip when adding new 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());
spSchedule1->PutDefaultEventTooltip(L"Start: <%=%1%><br>End: <%=%2%>");
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,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE());
spSchedule1->EndUpdate();

17:
How can I change the default label when adding new 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());
spSchedule1->PutCreateEventLabel(L"Start: <%=%1%><br>End: <%=%2%>");
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,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE());
spSchedule1->EndUpdate();

16:
How can I change the default label when adding new 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());
spSchedule1->PutDefaultEventLongLabel(L"Start: <%=%1%><br>End: <%=%2%>");
spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel());
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,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE());
spSchedule1->EndUpdate();

15:
How can I programatically add events to 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->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());
	var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE());
spSchedule1->EndUpdate();

14:
How can I hide the status part of a specific 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->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())->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();

13:
Is it possible to change the status color for a specific 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->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->EndUpdate();

12:
Is it possible to change the background color for a specific 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->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())->PutBodyBackColor(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->EndUpdate();

11:
Can I change the size of the status to be larger

/*
	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->PutStatusEventSize(8);
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();

10:
I do not need a status, can I hide it

/*
	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->PutShowStatusEvent(VARIANT_FALSE);
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();

9:
Is it possible to change the status's default background color

/*
	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->PutStatusEventColor(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());
	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();

8:
How can I change the visual appearance of the Events (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->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->PutVisualDesign(_bstr_t("gBFLBWIgBAEHhEJAEGg55hAvCcHAkIbD/i0JE0KhYnjQDFEaAQDhEMAAIhAPhBYKA6KhyMJjNZiMJyEA2EAxAUIk0HlEHlUsl0wmU0GYgGcig87AE9AE/lsvmMzEAym") +
"8BA==");
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();

7:
How can I change the visual appearance of the Events (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->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE());
spSchedule1->PutBodyEventBackColor(0x1000000);
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();

6:
How can I show the scheduler panel only, so no Calendar panel is shown

/*
	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));

5:
May I display the calendar in the right side of 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->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exChangePanels));

4:
Is it possible to disable resizing the vertical splitter

/*
	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::exDisableSplitter | EXSCHEDULELib::exResizePanelRight));

3:
How can I show 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->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exHideSplitter | EXSCHEDULELib::exResizePanelRight));

2:
Is there an AutoHide option for 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->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide);

1:
How can I hide 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->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exChangePanels | EXSCHEDULELib::exHideSplitter));