Article View: borland.public.cppbuilder.nativeapi
Article #7343Re: Multi line edit control foe ListView
From: Remy Lebeau (TeamB)
Date: Tue, 08 Feb 2005 21:13
Date: Tue, 08 Feb 2005 21:13
15 lines
1432 bytes
1432 bytes
"Sam S. Firouz" <sfirouz@Hotmail.com> wrote in message
news:42091d9a$1@newsgroups.borland.com...
> HWND hEdit = ListView_GetEditControl(Handle);
> SetWindowLong(hEdit, GWL_STYLE, ES_MULTILINE);
You are wiping out all of the edit window's current styles. You need to use
GetWindowLong() in order to preserve existing styles:
SetWindowLong(hEdit, GWL_STYLE, GetWindowLong(hEdit, GWL_STYLE) |
ES_MULTILINE);
Gambit
Technical Details
Message-ID:
<42092ab0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4208d83b$1@newsgroups.borland.com> <420900fb$1@newsgroups.borland.com> <42091d9a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1917315e7e13daf3 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: <4208d83b$1@newsgroups.borland.com> <420900fb$1@newsgroups.borland.com> <42091d9a$1@newsgroups.borland.com> Subject: Re: Multi line edit control foe ListView Date: Tue, 8 Feb 2005 13:13:28 -0800 Lines: 17 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: <42092ab0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107897008 68.69.17.41 (8 Feb 2005 13:10:08 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail