CMFCShellListCtrl::OnFormatFileSize

The framework calls this method when it converts the size of an object to a string.

virtual void OnFormatFileSize(
   long lFileSize,
   CString& str 
);

Parameters

  • [in] lFileSize
    The size of the file that the framework will display.

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

Remarks

When a CMFCShellListCtrl Class object needs to display the size of a file, it needs to convert the file size into a string format. The CMFCShellListCtrl uses this method to make that conversion. By default, this method converts the file size from bytes to kilobytes and then uses the current locale to format the size into string.

Requirements

Header: afxshelllistctrl.h

See Also

Reference

CMFCShellListCtrl Class

Hierarchy Chart