Dela via


CMFCToolBarDateTimeCtrl::SetTime

Sets the time and date in the time picker control.

BOOL SetTime(
   const COleDateTime& timeNew 
);
BOOL SetTime(
   const CTime* timeNew 
);
BOOL SetTime(
   LPSYSTEMTIME pTimeNew=NULL 
);

Parameters

  • [in] timeNew
    In the first version, a reference to a COleDateTime Class object that contains the time to which the control will be set. In the second version, a pointer to a CTime object that contains the time to which the control will be set.

  • [in] pTimeNew
    A pointer to the SYSTEMTIME structure that contains the time to which the control will be set.

Return Value

Nonzero if successful; otherwise 0.

Remarks

Sets the time in a date and time picker control by calling CDateTimeCtrl::SetTime.

Requirements

Header: afxtoolbardatetimectrl.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCToolBarDateTimeCtrl Class