BCGControlBar Pro 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
+ Inheritance diagram for CBCGPCalendar:

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.
 
 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.
 
- Public Member Functions inherited from CBCGPWnd
 IsOnGlassChecks if window is located on DWM ("Glass") area of the parent window.
 
 IsVisualManagerStyleTells whether a window uses visual manager style.
 
- Public Member Functions inherited from CBCGPCtrlPlaceHolderHelper
 CreateOnPlaceHolderCreates control on the placeholder location.
 

Protected Member Functions

 OnClickTodayButtonCalled by the framework when user clicks "Today" button.
 
 OnSelectionChangedCalled by the calendar when selection has changed.
 
- Protected Member Functions inherited from CBCGPGestureBase
 OnGestureEventBeginCalled by the framework to handle BCGP_GID_BEGIN notification.
 
 OnGestureEventEndCalled by the framework to handle BCGP_GID_END notification.
 
 OnGestureEventPanCalled by the framework to handle BCGP_GID_PAN notification
 
 OnGestureEventPressAndTapCalled by the framework to handle BCGP_GID_PRESSANDTAP notification.
 
 OnGestureEventRotateCalled by the framework to handle BCGP_GID_ROTATE notification.
 
 OnGestureEventTwoFingerTapCalled by the framework to handle BCGP_GID_TWOFINGERTAP notification.
 
 OnGestureEventZoomCalled by the framework to handle BCGP_GID_ZOOM notification.
 
 ProcessGestureEventThis method should be called from WM_GESTURE message handler.