Article View: borland.public.cppbuilder.nativeapi
Article #16212Re: Can reverse video in edit control be shut off?
From: Bill Carson
Date: Tue, 27 May 2003 15:39
Date: Tue, 27 May 2003 15:39
16 lines
1674 bytes
1674 bytes
> I have little experience with this, but I guess you can > use GetDlgItem() to retrieve the window handle > of the edit box in the dialog and then use SendMessage(). > hwndEdit = GetDlgItem(hwndDlg, 199); > SendMessage(hwndEdit, EM_SETSEL, > (WPARAM) -1, > (LPARAM) 0); Thanks for introducing me to GetDlgItem. But, this still didn't work in the WM_INITDIALOG case. However, see my reply to Eudy below for a solution that did work in the WM_COMMAND case. Thanks, Bill
Technical Details
Message-ID:
<3ed386d6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ed13bd7@newsgroups.borland.com> <3ED14414.2040904@directnet.com> <3ed23788@newsgroups.borland.com> <3ED23C01.80906@domain.invalid> <3ed25e24@newsgroups.borland.com> <3ED26E54.2050507@iae.cta>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a52495bb3fc3f3b6 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-27 09:19:48 PST From: "Bill Carson" <bcarson892003atyahoodotcom> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ed13bd7@newsgroups.borland.com> <3ED14414.2040904@directnet.com> <3ed23788@newsgroups.borland.com> <3ED23C01.80906@domain.invalid> <3ed25e24@newsgroups.borland.com> <3ED26E54.2050507@iae.cta> Subject: Re: Can reverse video in edit control be shut off? Date: Tue, 27 May 2003 08:39:45 -0700 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 NNTP-Posting-Host: 66.119.208.209 Message-ID: <3ed386d6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054050006 66.119.208.209 (27 May 2003 08:40:06 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail