Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the time and date in all instances of the time picker control that have a specified command ID.
static BOOL SetTimeAll(
UINT uiCmd,
const COleDateTime& timeNew
);
static BOOL SetTimeAll(
UINT uiCmd,
const CTime* pTimeNew
);
static BOOL SetTimeAll(
UINT uiCmd,
LPSYSTEMTIME pTimeNew=NULL
);
Parameters
[in] uiCmd
Specifies a toolbar button's command ID.[in] timeNew
In the first version, 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
Looks for a toolbar button with the specified command ID and sets the time in a date and time picker control by calling CMFCToolBarDateTimeCtrl::SetTime.
Requirements
Header: afxtoolbardatetimectrl.h