BCGControlBar Pro for MFC
static BOOL CBCGPToolbarDateTimeCtrl::SetTimeAll ( UINT  uiCmd,
const CTime *  pTimeNew 

Looks for a toolbar button with the specified command ID and sets the time in a date and time picker control.

Nonzero if successful; it is 0 if uiCmd does not specify a valid command ID.
uiCmdSpecifies a toolbar button's command ID.
pTimeNewA pointer to CTime object containing the time to which the control will be set.