Article View: borland.public.cppbuilder.nativeapi
Article #5332Re: CustomDraw ListBox item
From: JD
Date: Fri, 02 Sep 2005 12:30
Date: Fri, 02 Sep 2005 12:30
15 lines
1327 bytes
1327 bytes
"Jonathan Benedicto" <incorrect@no.server> wrote:
>
> Use Panel1->PaintTo( ListBox1->Canvas->Handle, X, Y );
From the help:
Warning:
When using PaintTo to draw on a canvas, you must lock the
canvas first (and unlock it after the call to PaintTo. If
you do not lock the canvas, Windows calls that occur while
the control is painting can cause the canvas to lose its
handle.
~ JD
Technical Details
Message-ID:
<431845dc$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43182b95@newsgroups.borland.com> <4318449e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,542536ff42f951c6 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: CustomDraw ListBox item Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 152.163.101.6 X-Forwarded-For: 172.157.101.111 References: <43182b95@newsgroups.borland.com> <4318449e@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <431845dc$1@newsgroups.borland.com> Date: 2 Sep 2005 05:30:20 -0700 X-Trace: newsgroups.borland.com 1125664220 207.105.83.66 (2 Sep 2005 05:30:20 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail