BCGControlBar Pro for MFC
static BOOL CBCGPToolbarDateTimeCtrl::SetTimeAll ( UINT  uiCmd,
const COleDateTime &  timeNew 

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.
timeNewA reference to a COleDateTime object containing the time to which the control will be set.