🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #111

Re: Problem in displaying TListView items that have different character set

#111
From: Andrue Cope [TeamB]
Date: Thu, 06 Jan 2005 10:45
27 lines
1796 bytes
Andrue Cope [TeamB] wrote:

>   void ViewerUtils_ListBoxSimpleDrawItem

Oops - should've mentioned that this works for TListView as well -
that's why it's a template. We just call it from the OnOwnerDraw event
handler:

void __fastcall TFrmSearchResults
  ::lbxWordListDrawItem( TWinControl *Control, 
                         int Index, 
                         TRect &Rect, 
                         TOwnerDrawState State )
{
  TListBox * lbx=dynamic_cast<TListBox *>( Control );

  if( lbx )
    ViewerUtils_ListBoxSimpleDrawItem( lbx,
                                       Rect,
                                       State,
                                       lbx->Items->Strings[ Index ] );
}

-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <41dd16e9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41dd0289$1@newsgroups.borland.com> <41dd0d01$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,adc2385500da5c60
X-Google-Attributes: gid10297d,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address>
Subject: Re: Problem in displaying TListView items that have different character set
Newsgroups: borland.public.cppbuilder.internationalization
References: <41dd0289$1@newsgroups.borland.com> <41dd0d01$1@newsgroups.borland.com>
Date: Thu, 6 Jan 2005 10:45:29 +0000
User-Agent: XanaNews/1.17.1.2
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <41dd16e9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105008361 217.207.223.34 (6 Jan 2005 02:46:01 -0800)
Lines: 27
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail