BCGSuite for MFC
void CBCGPDurationCtrl::SetDuration ( const COleDateTimeSpan &  timeSpan)

Sets current duration.

Call this method to store new time duration in control. Note, that although not all of parts may be displayed depending on state flags, all fields of the parameter are stored. Call method GetState() and check DRTN_DAYS, DRTN_HOURS_MINS and DRTN_SECONDS bits of returned value to examine which part is displayed. Call GetDuration() method to examine what currently time duration is stored. All parts of time duration parameter (exclude seconds) are significant in this method.

Parameters
timeSpanSpecifies the time duration to be stored and displayed.