Article View: borland.public.cppbuilder.nativeapi
Article #9755Re: Compressing a long path
From: JD
Date: Mon, 14 Jun 2004 05:32
Date: Mon, 14 Jun 2004 05:32
14 lines
1184 bytes
1184 bytes
"JD" <nospam@nospam.com> wrote:
>
>Is there an API which will compress a long path to something
>like:
>
> "C:\Program Files\...\LastFolderName"
PathCompactPath is system dependent and MinimizeName requires
the VCL. However, there is a 3rd option:
::DrawText( hDC, Path, strlen(Path), &R, DT_PATH_ELLIPSIS | DT_SINGLELINE | DT_MODIFYSTRING );
~ JD
Technical Details
Message-ID:
<40cd3869$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!62.253.162.219.MISMATCH!newsrout1.ntli.net!news-in.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40c9aa76$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,69f761a2b482ea47 X-Google-Attributes: gid10cc67,public From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: Compressing a long path Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 172.152.93.162 References: <40c9aa76$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <40cd3869$1@newsgroups.borland.com> Date: 13 Jun 2004 22:32:25 -0700 X-Trace: newsgroups.borland.com 1087191145 207.105.83.66 (13 Jun 2004 22:32:25 -0700) Lines: 15 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!62.253.162.219.MISMATCH!newsrout1.ntli.net!news-in.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail