Article View: comp.os.ms-windows.programmer
Article #25Re: MsgHook - why always called twice ?
From: Povl H. Pedersen
Date: Sun, 17 Sep 1995 00:00
Date: Sun, 17 Sep 1995 00:00
21 lines
1285 bytes
1285 bytes
In article <pope-1609952110380001@pope.edunet.dk>, pope@edunet.dk (Povl H. Pedersen) wrote: : Why is my MsgHook always called twice with apparently the same messages ? : (WN_KEYDOWN, WM_CHAR and probably all others as well) : : I get this problem under 3.11, Win95, and WinNT. : : I am using a 16-bit DLL from Authorware in case it matters. : I am sure I have only installed the MsgHook once. : I install it by: : : hMyHook = SetWindowsHook( WH_GETMESSAGE, gHProc ); : where gHProc is the result of a MakeProcInstance(); I just found out in the MS knowledge base. I have to look at the wParam, and only react when it is PM_REMOVE -- Win95 - Where do you want to go today ? Well, not to a 2 year late OS Only DOS is worse than Win95.
Technical Details
Message-ID:
<pope-1709950043200001@pope.edunet.dk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<pope-1609952110380001@pope.edunet.dk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f49cb,df7d12b719615721 X-Google-Attributes: gidf49cb,public X-Google-Thread: 1105ff,df7d12b719615721 X-Google-Attributes: gid1105ff,public From: pope@edunet.dk (Povl H. Pedersen) Subject: Re: MsgHook - why always called twice ? Date: 1995/09/17 Message-ID: <pope-1709950043200001@pope.edunet.dk> X-Deja-AN: 110251527 references: <pope-1609952110380001@pope.edunet.dk> organization: edu! newsgroups: comp.os.ms-windows.programmer,bit.listserv.authorware