🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to hide caret in Edit Box?

#9994
From: Alan Bellingham
Date: Fri, 28 May 2004 11:43
19 lines
1634 bytes
"JD" <nospam@nospam.com> wrote:

>
>Alan Bellingham <alanb@episys.com> wrote:
>> When I want to do that, I override the WM_CTLCOLOR message handlers.
>
>Interesting. The accepted response from fishface:
>
>    long style = GetWindowLong(Edit1->Handle, GWL_STYLE);
>    style = style | WS_DISABLED;
>    SetWindowLong(Edit1->Handle,GWL_STYLE, style);

There's that, too. It's probably simpler. I just happened to be
overriding a whole bunch of colors (static fields on bitmap backgrounds)
and extended the in-place solution a little further.

Alan Bellingham
-- 
ACCU Conference 2005 - 20-23 April, Randolph Hotel, Oxford, UK
Technical Details
Message-ID: <8c9eb017d8p2n7h8mvc4j76i89t8bnuc73@4ax.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40acc205$1@newsgroups.borland.com> <40b66bae@newsgroups.borland.com> <40b6fe48$1@newsgroups.borland.com> <9e5eb0l5b04cnks38h1ksuglsl7jjshli3@4ax.com> <40b72077$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f48a98caca73cc37
X-Google-Attributes: gid10cc67,public
From: Alan Bellingham <alanb@episys.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to hide caret in Edit Box?
Date: Fri, 28 May 2004 12:43:41 +0100
Reply-To: alanb@episys.com
Message-ID: <8c9eb017d8p2n7h8mvc4j76i89t8bnuc73@4ax.com>
References: <40acc205$1@newsgroups.borland.com> <40b66bae@newsgroups.borland.com> <40b6fe48$1@newsgroups.borland.com> <9e5eb0l5b04cnks38h1ksuglsl7jjshli3@4ax.com> <40b72077$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 2.0/32.646
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.129.251.130
X-Trace: newsgroups.borland.com 1085744620 193.129.251.130 (28 May 2004 04:43:40 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail