Desktop Functions: Smart Device Functions:
|
Search Results for "PathCompactPath" in [All]Interfaces
/// <param name="fCompactPath">TRUE to have path strings compacted if they are too large to fit on a line. The paths are compacted with PathCompactPath.</param> shlwapi
static extern bool PathCompactPathEx([Out] StringBuilder pszOut, string szPath, int cchMax, int dwFlags);
<DllImport("shlwapi.dll", EntryPoint:="PathCompactPathExW", SetLastError:=True, CharSet:=CharSet.Unicode)>
Shared Public Function PathCompactPathEx(
Public Declare Function PathCompactPathEx Lib "shlwapi" Alias "PathCompactPathExA" _ If you have an HDC, take a look at PathCompactPath
/// Test code for PathCompactPathEx
string longPath = "c:\\a\\very\\very\\long\\path\\that\\needs\\to\\be\\shortened\\by\\calling\\the\\PathCompactpathEx";
// displays : "c:\a\very\very\long...\PathCompactpathEx"
static extern bool PathCompactPathEx([Out] StringBuilder pszOut, string szPath, int cchMax, int dwFlags);
PathCompactPathEx(sb, longPathName, wantedLength + 1, 0);
PathCompactPathEx(sb, path, MAX_WIDTH + 1, 0)
static extern bool PathCompactPathEx([Out] StringBuilder pszOut, string szPath, int cchMax, int dwFlags);
<DllImport("shlwapi.dll", EntryPoint:="PathCompactPathExW", SetLastError:=True, CharSet:=CharSet.Unicode)> _
Shared Public Function PathCompactPathEx(
Public Declare Function PathCompactPathEx Lib "shlwapi" Alias "PathCompactPathExA" _ If you have an HDC, take a look at PathCompactPath
/// Test code for PathCompactPathEx
string longPath = "c:\\a\\very\\very\\long\\path\\that\\needs\\to\\be\\shortened\\by\\calling\\the\\PathCompactpathEx";
// displays : "c:\a\very\very\long...\PathCompactpathEx"
static extern bool PathCompactPathEx([Out] StringBuilder pszOut, string szPath, int cchMax, int dwFlags);
PathCompactPathEx(sb, longPathName, wantedLength + 1, 0);
PathCompactPathEx(sb, path, MAX_WIDTH + 1, 0) |