Article View: borland.public.cppbuilder.nativeapi
Article #7654Re: DrawTextEx
From: Remy Lebeau (TeamB)
Date: Sat, 01 Jan 2005 20:12
Date: Sat, 01 Jan 2005 20:12
14 lines
1308 bytes
1308 bytes
"Petar Popara" <none> wrote in message news:41d5500e$1@newsgroups.borland.com... > if (!DrawTextEx(lb->Handle, a, 199, &r, DT_MODIFYSTRING | DT_PATH_ELLIPSIS, > NULL)) You are passing in the wrong Handle. DrawTextEx() expects an HDC, but you are passing in an HWND instead. You need to use the Handle of the ListBox's Canvas, not the ListBox itself. Gambit
Technical Details
Message-ID:
<41d703d4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41d5500e$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> Subject: Re: DrawTextEx Date: Sat, 1 Jan 2005 12:12:25 -0800 Lines: 16 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: <41d703d4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104610260 68.69.17.41 (1 Jan 2005 12:11:00 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail