🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1095

WinSetHook, MsgFilterHook

#1095
From: Chung-Ru Ho
Date: Tue, 15 Sep 1992 02:41
20 lines
1327 bytes
Could anyone give me some directions as how to use these two functions
using an example or pointing me to a referecnce book?  I have all the
technical library books for development PM, though it has huge amount
of info, but not very helpful in guiding me...

I was trying to filter the events passed to a list box inside a modal
dialog box (LN_SELECT).  It looked like that I was able to set up all the 
functions correctly.  But my problem came inside MsgFilterHook function because
I don't know how to make use of its PQMSG parameter!  Sometimes the hwnd
parameter in this pQmsg was set to a negative number, is it possible?  
BTW, the declaration of the MsgFilterFunction was: (used for a dialog box)

     BOOL MsgFilterHook(HAB hab, PQMSG pQmsg, USHORT uContext);

Any pointers are much appreciated!  


Tony Chou
Quantum Development Corporation
Claymont, DE 19703
Technical Details
Message-ID: <BuLM53.1M1@news.udel.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!wupost!darwin.sura.net!news.udel.edu!brahms.udel.edu!09872

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!wupost!darwin.sura.net!news.udel.edu!brahms.udel.edu!09872
From: 09872@brahms.udel.edu (Chung-Ru Ho)
Subject: WinSetHook, MsgFilterHook
Message-ID: <BuLM53.1M1@news.udel.edu>
Sender: usenet@news.udel.edu
Nntp-Posting-Host: brahms.udel.edu
Organization: University of Delaware
Distribution: usa
Date: Tue, 15 Sep 1992 02:41:27 GMT
Lines: 21