🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Help with Message hook

#8004
From: mike
Date: Mon, 06 Dec 2004 16:21
35 lines
2182 bytes
Remy,

Thanks for responding. I didn't show the install hook code so that the
message would be shorter to the newsgroup. I will try the advice you have
given me and "when" I don't get it to work then I will post the new code.
Maybe I am learning something and may get it to work, lets see.

Thanks

Mike
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:41b412e1$1@newsgroups.borland.com...
>
> "mike" <mfbrowne@earthlink.net> wrote in message
> news:41b2766c$1@newsgroups.borland.com...
>
> > I have created a system wide windows message hook and I am trying
> > to figure out how to detect when a menu is selected. Here is the code
> > I am using right.
>
> You are using a WH_CALLWNDPROC hook, which is only invoked when
> SendMessage() is used to deliver a message to a window.  Try using a
> WH_GETMESSAGE hook as well so that you can intercept GetMessage() in
> addition to SendMessage().  Also, have a look at using a WH_MSGFILTER or
> WH_SYSMSGFILTER hook instead.  They can return menu-specific
notifications.
>
> > I never see a hit.
>
> How exactly did you install the hook?  You did not show that code.
>
>
> Gambit
>
>
Technical Details
Message-ID: <41b486ad$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41b2766c$1@newsgroups.borland.com> <41b412e1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,21323583e8de481a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "mike" <mfbrowne@earthlink.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41b2766c$1@newsgroups.borland.com> <41b412e1$1@newsgroups.borland.com>
Subject: Re: Help with Message hook
Date: Mon, 6 Dec 2004 11:21:32 -0500
Lines: 37
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: 68.204.189.169
Message-ID: <41b486ad$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102349997 68.204.189.169 (6 Dec 2004 08:19:57 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail