Article View: borland.public.cppbuilder.nativeapi
Article #12645Re: Subclassing an edit control
From: Ed Mulroy [TeamB]
Date: Tue, 25 Nov 2003 18:02
Date: Tue, 25 Nov 2003 18:02
27 lines
2052 bytes
2052 bytes
You have to create your own window procedure. You do not have to create a
window class. How far you'll get with those specific items when subclassing
an edit control is an issue that I cannot address.
There is an example in the Windows API help which subclasses an edit
control.
To run the help file, select Help and the Windows API selection if in the
IDE, If not in the IDE then double click on win32.hlp in Windows Explorer.
Click on Index.
In the edit control of the dialog that opens type in Subclassing a Window
. Ed
> Martin Golm wrote in message
> news:3FC37DC6.8A69A621@gmx.de...
>
> 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?
Technical Details
Message-ID:
<3fc39946@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3FC37DC6.8A69A621@gmx.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7f8523ddb948f0d0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-25 10:05:07 PST From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <3FC37DC6.8A69A621@gmx.de> Subject: Re: Subclassing an edit control Date: Tue, 25 Nov 2003 13:02:41 -0500 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 206.228.162.61 Message-ID: <3fc39946@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069783366 206.228.162.61 (25 Nov 2003 10:02:46 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail