🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Help with Message hook

#8000
From: Remy Lebeau (TeamB)
Date: Mon, 06 Dec 2004 08:06
20 lines
1743 bytes
"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: <41b412e1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41b2766c$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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41b2766c$1@newsgroups.borland.com>
Subject: Re: Help with Message hook
Date: Mon, 6 Dec 2004 00:06:15 -0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41b412e1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102320353 68.69.17.41 (6 Dec 2004 00:05:53 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail