🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: MouseHook,Message From DLL to Application while not on Focus

#10225
From: Alex Sarafian
Date: Thu, 06 May 2004 09:06
30 lines
2271 bytes
Thank you both.
Sorry for the delay for responce but i had moving

Michel Leunen <mleu@NOSPAMskynet.be> My problem is that i want to notify
main window about the event and let the window handle it. I have achieved
the level of functionality your are explaining in the site. Thanks

Michel Leunen <mleu@NOSPAMskynet.be>.
As i understand it i must have o common place where i must store common
data.
But i don't understand why you chose these
HINSTANCE hInst;
HHOOK hook;

I don't understand something thougth. Since the handle of the parent window
is passed in every dll instance, throught the SetMouseHookFunction shouldn't
every DLL instance send the message to the parent window successfully?

Taking into account that i'm wrong in the above assumption i continue. But i
would like an answer. I really know little about this stuff.
I read about CreateFileMapping and MapViewOfFile but I'm having some
trouble, so if you can help?
Where is the file mapping must be created?? And from where should i store
the HWND and HHOOK variables?? I'm really confused.
If it is in the source of a dll then it should make no difference. If its in
the source of the main window, then isn't there a problem, since there is no
HHOOK variable (it must initialized in a dll).

If you can provide an example, it would be very helpfull.
Thanks
Technical Details
Message-ID: <409a0030$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4090ce56@newsgroups.borland.com> <409152c9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ae4b21ed9340f943
X-Google-Attributes: gid10cc67,public
From: "Alex Sarafian" <demelene_gr@yahoo.gr>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4090ce56@newsgroups.borland.com> <409152c9$1@newsgroups.borland.com>
Subject: Re: MouseHook,Message From DLL to Application while not on Focus 
Date: Thu, 6 May 2004 12:06:58 +0300
Lines: 32
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: 150.140.3.118
Message-ID: <409a0030$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1083834416 150.140.3.118 (6 May 2004 02:06:56 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail