PathCompactPath (shlwapi)
Last changed: -92.124.113.170

.
Summary
Truncates a file path to fit within a given pixel width by replacing path components with ellipses.

C# Signature:

[DllImport("shlwapi.dll", CharSet=CharSet.Auto)]
public static extern int PathCompactPath(IntPtr hDC, StringBuilder pszPath, int dx );

VB Signature:

Declare Function PathCompactPath Lib "shlwapi.dll" (TODO) As TODO

User-Defined Types:

None.

Notes:

If you do not have a HDC available, take a look at PathCompactPathEx

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation