BCGSuite for MFC
BOOL CBCGPCalendar::SelectDate ( const COleDateTime &  date,
BOOL  bAdd = FALSE,
BOOL  bNotify = TRUE,
BOOL  bRedraw = TRUE 
)

Selects the specified date.

This function selects the specified date. If bAdd is TRUE, the previous selection is not cleared (this allows multiple selection). If bNotify is TRUE, the calendar calls OnSelectionChanged() (which in turn sends out a notification message BCGM_CALENDAR_ON_SELCHANGED).

Parameters
dateSpecifies the date to select.
bAddIf TRUE, the old selection is not removed.
bNotifyIf TRUE, the calendar sends "selection changed" notification.
bRedrawIf TRUE, the calendar will be redrawn to reflect the new selection state.