Partager via


CMFCShellListCtrl::OnFormatFileDate

The framework calls this method when it must convert the date associated with an object into a string.

virtual void OnFormatFileDate(
   const CTime& tmFile,
   CString& str 
);

Parameters

  • [in] tmFile
    The date associated with a file.

  • [out] str
    A string that contains the formatted file date.

Remarks

When a CMFCShellListCtrl Class object displays the date associated with a file, it must convert that date to a string format. The CMFCShellListCtrl uses this method to make that conversion. By default, this method uses the current locale to format the date into a string.

Requirements

Header: afxshelllistctrl.h

See Also

Reference

CMFCShellListCtrl Class

Hierarchy Chart