BCGSuite for MFC
static const COleDateTime CBCGPCalendarMenuButton::GetCalendarByCmdID ( UINT  uiCmdID)
static

Returns
A date that belong to the given command ID.

Use this static member function when you have several date buttons in application. When the user has clicked a date button it will notify its parent by WM_COMMAND message with the button's command ID. This function allows an easy way to determine the button's date.

Parameters
uiCmdIDSpecifies the command ID.