Dela via


CMFCToolBarDateTimeCtrl::GetTimeAll

Returns the time selected by the user from the time picker control button that has a specified command ID.

static BOOL GetTimeAll(
   UINT uiCmd,
   COleDateTime& timeDest 
);
static DWORD GetTimeAll(
   UINT uiCmd,
   CTime& timeDest 
);
static DWORD GetTimeAll(
   UINT uiCmd,
   LPSYSTEMTIME pTimeDest 
);

Parameters

  • [in] uiCmd
    Specifies a toolbar button's command ID.

  • [out] timeDest
    In the first overload, a COleDateTime Class object that will receive the system time information. In the second overload, a CTime object that will receive the system time information.

  • [out] pTimeDest
    A pointer to the SYSTEMTIME structure to receive the system time information. Must not be NULL.

Return Value

If the framework cannot find a toolbar button that matches the command ID uiCmd, the return value is zero in the first overload, and GDT_NONE in the other overloads. If the toolbar button is found, the return value is the same as the return value from a call to CMFCToolBarDateTimeCtrl::GetTime on that button. A return value of zero or GDT_NONE can occur when the button is found, which indicates that the call to GetTime did not return a valid date for some other reason.

Remarks

This method looks for a toolbar button that has the specified command ID and calls CMFCToolBarDateTimeCtrl::GetTime method on that button.

Requirements

Header: afxtoolbardatetimectrl.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCToolBarDateTimeCtrl Class