Article View: borland.public.cppbuilder.nativeapi
Article #7338Re: Multi line edit control foe ListView
From: Remy Lebeau (TeamB)
Date: Tue, 08 Feb 2005 18:15
Date: Tue, 08 Feb 2005 18:15
26 lines
2023 bytes
2023 bytes
"Sam S. Firouz" <sfirouz@Hotmail.com> wrote in message news:4208d83b$1@newsgroups.borland.com... > 1 - Does any one know how to make that window a Multi line edit window? Once you have the handle, to can use Get/SetWindowLong(GWL_STYLE) to give it the ES_MULTILINE style. > 2 - What message should I be listening for to be notified when > the text of the edit control has changed so I can resize the > edit control accordingly? The ListView should receive EN_UPDATE notifications via the WM_COMMAND message when the child edit control changes. Also, you can subclass the edit window' handle via Get/SetWindowLong(GWL_WNDPROC) and have your own window procedure check for the WM_WIDOWPOSCHANGING message. Every time a character is typed, the edit window tries to resize and reposition itself automatically. You can override the message's default values to specify your own size and position values before then passing the message to the edit window's original window procedure. Gambit
Technical Details
Message-ID:
<420900fb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4208d83b$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> Subject: Re: Multi line edit control foe ListView Date: Tue, 8 Feb 2005 10:15:27 -0800 Lines: 28 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: <420900fb$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107886331 68.69.17.41 (8 Feb 2005 10:12:11 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail