BCGSuite for MFC
CBCGPAppointment::CBCGPAppointment ( const COleDateTime &  dtStart,
const COleDateTime &  dtFinish,
const CString &  strText,
COLORREF  clrBackground = CLR_DEFAULT,
COLORREF  clrForeground = CLR_DEFAULT,
COLORREF  clrDuration = CLR_DEFAULT 
)

Constructs an appointment object.

dtStart and dtFinish must be a valid COleDateTime objects. dtStart must be not greater than dtFinish.

Parameters
dtStartA reference to a COleDateTime object that specifies the start time
dtFinishA reference to a COleDateTime object that specifies the end time.
strText- A reference to a CString object that specifies the appointment text label.
clrBackgroundA COLORREF value that specifies the background color. Specify the CLR_DEFAULT value to use the default background color.
clrForegroundA COLORREF value that specifies the foreground color. Specify the CLR_DEFAULT value to use the default foreground color.
clrDurationA COLORREF value that specifies the duration (time line) color. Specify the CLR_DEFAULT value to use the default duration (time line) color.