Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

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>

.

PROGDLG, PDTIMER, PathCompactPath

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)

.
Documentation
PathCompactPathEx on MSDN [TextRenderer.MeasureText] on MSDN
.

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)

.
Documentation
PathCompactPathEx on MSDN [TextRenderer.MeasureText] on MSDN

 
Access PInvoke.net directly from VS: