Condividi tramite


CPathT::CompactPathEx

Call this method to truncate a file path to fit within a given number of characters by replacing path components with ellipses.

BOOL CompactPathEx( 
   UINT nMaxChars, 
   DWORD dwFlags = 0  
);

Parameters

  • nMaxChars
    The maximum number of characters to be contained in the new string, including the terminating NULL character.

  • dwFlags
    Reserved.

Return Value

Returns TRUE on success, FALSE on failure.

Remarks

For more information, see PathCompactPathEx.

Requirements

Header: atlpath.h

See Also

Reference

CPathT Class

CPathT::CompactPath