Article View: borland.public.cppbuilder.nativeapi
Article #7664Re: DrawTextEx
From: Remy Lebeau (TeamB)
Date: Tue, 04 Jan 2005 18:46
Date: Tue, 04 Jan 2005 18:46
16 lines
1545 bytes
1545 bytes
"Hans Galema" <notused@notused.nl> wrote in message news:41da8cbd$1@newsgroups.borland.com... > That still is not nice. As length depends now on cFileName and not directly > on the contents of a. It has to be dependant on cFileName. In the original snippet, Petar was hard-coding the length of 199 when calling DrawTextEx(), which will cause DrawTextEx() to render text that does not actually exist if cFileName is less than 199 characters. That is why I used a variable to specify the actual length of the text to render. Gambit
Technical Details
Message-ID:
<41dae41f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41d5500e$1@newsgroups.borland.com> <41d983be@newsgroups.borland.com> <41d99396$1@newsgroups.borland.com> <41da8cbd$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,42d3caa052e60398 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41d5500e$1@newsgroups.borland.com> <41d983be@newsgroups.borland.com> <41d99396$1@newsgroups.borland.com> <41da8cbd$1@newsgroups.borland.com> Subject: Re: DrawTextEx Date: Tue, 4 Jan 2005 10:46:20 -0800 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41dae41f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104864287 68.69.17.41 (4 Jan 2005 10:44:47 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail