🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Subclassing an edit control

#12644
From: Martin Golm
Date: Tue, 25 Nov 2003 16:05
11 lines
1347 bytes
I create an edit control by using CreateWindow("EDIT", ...). No problem
so far.
The problem I have is that I need to intercept its message processing
and alter its default behaviour. For instance, I need to suppress the
context menu that pops up when right-clicking the mouse, suppress the
cut-and-paste-ability, and alter other stuff.
Do I have to create my own window class and window procedure, or is
there any other way to hack into the edit controls message processing?

Thanks in advance,
Martin
Technical Details
Message-ID: <3FC37DC6.8A69A621@gmx.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,7f8523ddb948f0d0,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-25 08:07:02 PST
Message-ID: <3FC37DC6.8A69A621@gmx.de>
Date: Tue, 25 Nov 2003 17:05:26 +0100
From: Martin Golm <golm@gmx.de>
X-Mailer: Mozilla 4.72 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Subclassing an edit control
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.156.29.148
X-Trace: newsgroups.borland.com 1069776298 62.156.29.148 (25 Nov 2003 08:04:58 -0700)
Lines: 11
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail