BCGSuite for MFC

Detailed Description

The CBCGPCalendar class implements the functionality of calendar control. The control can display several months at once. The number of months to display is calculated automatically, according to the control size.

The control supports multiple day selection. It provides scroll buttons that allow to navigate to any date allowed to display. The quick navigation is also allowed by left mouse click on the month name.

Calendar colors can be customized. They are stored in CBCGPCalendarColors objects and returned by current visual manager CBCGPVisualManager::GetCalendarColors.

See also
CBCGPVisualManager, CBCGPCalendarColors

Inherits CBCGPWnd, and CBCGPCtrlPlaceHolderHelper.

Public Member Functions

 ClearSelectedDatesClears all selection.
 
 EnableMutipleSelectionEnables or disables the multiple selection mode.
 
 EnableTodayButtonShows or hides the "today" button.
 
 EnableVisualManagerStyleEnables the visual manager style.
 
 EnableWeekNumbersShows or hides week numbers.
 
 GetColorsGets the calendar colors.
 
 GetDateReturns the selected date.
 
 GetDateColorReturns the color of the specified date.
 
 GetFirstDayOfWeekReturns the first day of week.
 
 GetFirstWeekOfYearGets the first week of year.
 
 GetHorzMarginReturns the horizontal margin value.
 
 GetMaxWeekDayCharactersGets maximum week day characters.
 
 GetSelectedDatesReturns the list of selected dates.
 
 GetVertMarginReturns the vertical margin value.
 
 GetWeekDayReturns a weekday name.
 
 IsCustomColorsTells whether a custom color set is used for the calendar rendering.
 
 IsDateMarkedTells whether the specified date is marked (displayed using the bold font).
 
 IsDateMarkedTells whether the specified date is marked (displayed using the bold font).
 
 IsDateSelectedTells whether the specified date is selected.
 
 IsDateSelectedTells whether the specified date is selected.
 
 IsMiltipleSelectionTells whether the calendar control is working in multiple selection, or single selection mode.
 
 IsSingleMonthModeTells whether the calendar control works in the single or multiple month mode.
 
 IsTodayButtonTells whether the "today" button is visible, or not.
 
 IsVisualManagerStyleTells whether a window uses visual manager style.
 
 IsWeekNumbersTells whether the week numbers are displayed, or not.
 
 MarkDatesSets marked dates.
 
 RecalcLayoutAdjusts layout of calendar control.
 
 SelectDateSelects the specified date.
 
 SetCustomColorsSets custom color set.
 
 SetDateSets the specified date.
 
 SetDateColorSets the color of specified date.
 
 SetFirstDayOfWeekSets the first day of week.
 
 SetFirstWeekOfYearSets first week of year.
 
 SetHorzMarginSets the horizontal margin.
 
 SetMaxWeekDayCharactersSets maximum week day characters.
 
 SetPlannerAssociates the calendar control with the Planner control.
 
 SetSelectedDatesSelects multiple dates
 
 SetSelectedRangeSelects dates range
 
 SetSingleMonthModeSwitches between single and multiple month mode.
 
 SetVertMarginSets the vertical margin.
 
 UnselectDateMakes the specified date unselected.
 

Protected Member Functions

 OnClickTodayButtonCalled by the framework when user clicks "Today" button.
 
 OnSelectionChangedCalled by the calendar when selection has changed.