🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Handling EM_SCROLL

#16606
From: Paul Edwards
Date: Thu, 08 May 2003 23:13
18 lines
1707 bytes
Appologies for cross posting but on reflecion this probably should have gone
here rather than vclcomponents

I have an application where I ned to handle the EM_SCROLL message in a Rich
edit - I have SubClassed the WindowProc for the TRichEdit and used hte
follwoing routine.

void __fastcall TForm1::MyAsciiProc(TMessage &Message)
{
  OldAsciiProc(Message);
  if( (Message.Msg == EM_SCROLL)
    Posn->Perform(Message.Msg, Message.WParam, Message.LParam);
}

Placing a break point inside this routine shows either that the EM_SCROLL
message is not generated or that it isnot getting to this routine - any one
got any ideas. I have searched through the MER archive and the only
references to subclssing that I see are for WM messages not EM messages.
Technical Details
Message-ID: <3ebae48a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ea75575825b6ad93,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-08 16:15:51 PST
From: "Paul Edwards" <noone@nowhere.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Handling EM_SCROLL
Date: Fri, 9 May 2003 00:13:15 +0100
Lines: 20
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.1165
NNTP-Posting-Host: 217.36.21.244
Message-ID: <3ebae48a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052435594 217.36.21.244 (8 May 2003 16:13:14 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.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