BCGControlBar Pro for MFC
static DWORD CBCGPToolbarDateTimeCtrl::GetTimeAll ( UINT  uiCmd,
CTime &  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 CTime object that will receive the system time information.