🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5716

Listview and unicode

#5716
From: Andrue Cope [TeamB]
Date: Thu, 21 Jul 2005 14:55
23 lines
1869 bytes
I have implemented VCL code to overwrite the caption of items with a
unicode string. This is working fine but I've noticed a potential issue.

I ask each item to return the display rect for its label /but this is
based on the item's ANSI label/ and there's no reason to expect it to
be the correct rectangle for my string.

I've had a look on MSDN but it seems that the listview uses 8 bit
strings only. That means the best I can hope for is to get the biggest
possible display caption. If needs must I can probably work that out
for myself but even that isn't the end of the problem.

Assuming I can get such a rectangle I need to be able to work out how
to reduce it to the minimum needed since that's what a normal list view
does.

Oh and I need all this to work in all four view modes.

So, assuming you read this to the end - do you have any suggestions?
-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <42dfb77b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,865686a5077b2d65,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address>
Subject: Listview and unicode
Newsgroups: borland.public.cppbuilder.nativeapi
Date: Thu, 21 Jul 2005 15:55:55 +0100
User-Agent: XanaNews/1.17.5.7
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <42dfb77b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1121957755 217.207.223.34 (21 Jul 2005 07:55:55 -0700)
Lines: 23
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail