BCGControlBar Pro for MFC
CBCGPAppointment

Detailed Description

The CBCGPAppointment class is used in conjunction with the Planner control and represents a single appointment.

You can simply construct a CBCGPAppointment object, set its properties and add the newly created appointment to a CBCGPPlannerManagerCtrl object using CBCGPPlannerManagerCtrl::AddAppointment.

See also
CBCGPPlannerManagerCtrl, CBCGPPlannerView

Inherits CObject.

Public Types

enum  BCGP_APPOINTMENT_HITTEST
 

Public Member Functions

 CBCGPAppointmentConstructs an appointment object.
 
 CanBeStoredTells whether the appointment can be serialized.
 
 CreateCopyCreates a copy of the appointment.
 
 GetBackgroundColorReturns the background color of the appointment
 
 GetDescriptionReturns the description string of the appointment.
 
 GetDSDrawReturns a reference to array of data used to render the appointment.
 
 GetDSPrintReturns a reference to array of data used to print the appointment.
 
 GetDurationReturns duration of the appointment.
 
 GetDurationColorReturns the duration (time line) color of the appointment
 
 GetFinishReturns the finish time of the appointment.
 
 GetForegroundColorReturns the foreground (text) color of the appointment
 
 GetImageListReturns a reference to a list of icon indexes.
 
 GetPropertiesReturns a property bag associated with this appointment.
 
 GetRectDrawReturns the bounding rectangle of the appointment.
 
 GetRectEditReturns bounding rectangle of edit control.
 
 GetRecurrenceReturns a pointer to recurrence.
 
 GetRecurrenceDateReturns recurrence date for the cloned object.
 
 GetRecurrenceIDReturns ID of recurrence rule applied to the appointment.
 
 GetResourceIDReturns a resource ID (support for multi-resource view)
 
 GetStartReturns the start time of the appointment.
 
 GetToolTipTextReturns tooltip text.
 
 HasImageTells whether the appointment is associated with an image located in the image list at the specified index.
 
 HitTestDetermines which appointment item is at a specified position.
 
 IsAllDayTells whether the event is the "All day" appointment.
 
 IsEditExistsTells whether the appointment is in in-place editing mode.
 
 IsMultiDayTells whether an appointment is a multi day appointment.
 
 IsRecurrenceTells whether the parent appointment is recurrent or cloned object.
 
 IsRecurrenceCloneTells whether the appointment is cloned.
 
 IsRecurrenceExceptionTells whether the recurrence applied to the appointment has exceptions.
 
 IsSelectedTells whether the appointment is selected, or not.
 
 OnEndEditCalled when in-place editing has completed.
 
 RemoveRecurrenceRemoves a recurrent rule from the appointment.
 
 SetAllDaySets an event to be "All day".
 
 SetBackgroundColorSets the background color for the appointment.
 
 SetDescriptionSets the description string of the appointment
 
 SetDurationColorSets the duration (time line) color for the appointment.
 
 SetForegroundColorSets the foreground (text) color for the appointment.
 
 SetIntervalSets start and end time of the appointment.
 
 SetPropertiesApplies a new set of properties to the appointment.
 
 SetRecurrenceIDSets recurrence ID to the appointment.
 
 SetRecurrenceRuleApplies a recurrent rule to the appointment.
 
 SetResourceIDAssigns an ID to resource (support for multi-resource view)
 
 SetSelectedSelects the appointment.
 
 UpdateRecurrenceUpdates recurrence rule for the appointment.
 

Protected Member Functions

 CreateEditCreates an edit control for in-place editing.
 
 DestroyEditDestroys the edit control used for in-place editing of appointment.
 
 OnDrawThis method is called from CBCGPPlannerView object to draw the appointment
 
 OnDrawThis method is called from CBCGPPlannerView object to draw the appointment
 
 OnEditCalled from the planner control to begin in-place editing of the appointment.
 
 OnPrintCalled by the framework when it needs to print the appointment.
 
 SerializeReads or writes this object from or to an archive.