🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16200

Re: Can reverse video in edit control be shut off?

#16200
From: user
Date: Mon, 26 May 2003 16:08
22 lines
2316 bytes
Bill Carson wrote:
> My edit control is being created from a resource script
> which I am compiling with the Borland resource compiler
> and then including into my executable using the Borland
> Command Line Compiler. I have searched the SDK, MSDN
> and Googled repeatedly, but I can find no reference to a way
> to prevent an edit control from initially displaying text in
> reverse video.  I  think this is the default option with an edit
> control, so there may be no way to defeat it, unless there is
> some documentation I am not finding.

The text in the edit control is being displayed in "reverse video" 
because it is selected. You can clear the selection by sending the 
EM_SETSEL message to the control with the starting point parameter, 
wParam, set to -1.

lResult = SendMessage(
           hWndControl, // handle to destination control
           EM_SETSEL,   // message ID
           (WPARAM) -1, // starting character position of selection
           (LPARAM) 0   // ending character position of selection
);
Technical Details
Message-ID: <3ED23C01.80906@domain.invalid>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!wn14feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ed13bd7@newsgroups.borland.com> <3ED14414.2040904@directnet.com> <3ed23788@newsgroups.borland.com>

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-26 09:48:58 PST
Message-ID: <3ED23C01.80906@domain.invalid>
Date: Mon, 26 May 2003 12:08:33 -0400
From:  user@domain.invalid
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Can reverse video in edit control be shut off?
References: <3ed13bd7@newsgroups.borland.com> <3ED14414.2040904@directnet.com> <3ed23788@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 141.151.183.248
X-Trace: newsgroups.borland.com 1053965329 141.151.183.248 (26 May 2003 09:08:49 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!wn14feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail