BCGControlBar Pro for MFC
static BOOL CBCGPToolbarDateTimeCtrl::GetTimeAll ( UINT  uiCmd,
COleDateTime &  timeDest 

Looks for a toolbar button with the specified command ID and then calls CDateTimeCtrl::GetTime (see MFC documentation for details).

uiCmdSpecifies a toolbar button's command ID.
timeDestA reference to a COleDateTime object that will receive the system time information.