home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4954 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!wupost!darwin.sura.net!news.udel.edu!brahms.udel.edu!09872
  3. From: 09872@brahms.udel.edu (Chung-Ru Ho)
  4. Subject: WinSetHook, MsgFilterHook
  5. Message-ID: <BuLM53.1M1@news.udel.edu>
  6. Sender: usenet@news.udel.edu
  7. Nntp-Posting-Host: brahms.udel.edu
  8. Organization: University of Delaware
  9. Distribution: usa
  10. Date: Tue, 15 Sep 1992 02:41:27 GMT
  11. Lines: 21
  12.  
  13. Could anyone give me some directions as how to use these two functions
  14. using an example or pointing me to a referecnce book?  I have all the
  15. technical library books for development PM, though it has huge amount
  16. of info, but not very helpful in guiding me...
  17.  
  18. I was trying to filter the events passed to a list box inside a modal
  19. dialog box (LN_SELECT).  It looked like that I was able to set up all the 
  20. functions correctly.  But my problem came inside MsgFilterHook function because
  21. I don't know how to make use of its PQMSG parameter!  Sometimes the hwnd
  22. parameter in this pQmsg was set to a negative number, is it possible?  
  23. BTW, the declaration of the MsgFilterFunction was: (used for a dialog box)
  24.  
  25.      BOOL MsgFilterHook(HAB hab, PQMSG pQmsg, USHORT uContext);
  26.  
  27. Any pointers are much appreciated!  
  28.  
  29.  
  30. Tony Chou
  31. Quantum Development Corporation
  32. Claymont, DE 19703
  33.  
  34.