home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 7074 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!psinntp!panix!os2man
  3. From: os2man@panix.com (Larry Salomon Jr.)
  4. Subject: Help hook solution
  5. Message-ID: <1992Dec16.150510.24489@panix.com>
  6. Date: Wed, 16 Dec 1992 15:05:10 GMT
  7. Organization: PANIX Public Access Unix, NYC
  8. Lines: 29
  9.  
  10. Some time ago, I posted a desperate plea for help with providing help for
  11. message boxes via the help hook (the only possible way to do so).  I did
  12. everything according to the documentation to no avail; I could not get the
  13. "Help" button to work.
  14.  
  15. Well, the documentation was wrong and has been since OS/2 1.2 (both IBM's
  16. Programming Guide and MS's QuickHelp overviews are incorrect).  They state
  17. that, if you are going to use a help hook, it should be installed PRIOR
  18. to creating the help instance, since it too installs a help hook to perform
  19. its function.  However, if you assume for the moment that it uses the
  20. WinSetHook() function to do so and look in the docs for that, you'll see that
  21. the call installs the hook at the *head* of the hook chain.
  22.  
  23. That means, for those who don't already see the problem :) , that if I install
  24. A and the HM installs hook B afterwards, the hook chain is B->A; but the HM
  25. never calls the next hook!
  26.  
  27. When I moved the WinSetHook() to after the WinAssociateHelpInstance() call
  28. everything worked fine.
  29.  
  30. You would think that *someone* *somewhere* would have found this doc error,
  31. but *AP*p*AR*ently not.  IBM, please fix this.
  32.  
  33. Cheers,
  34. Q
  35. -- 
  36. "If you choose not to decide, you  | "My other body is in the shop" - seen
  37.  still have made a choice" - Rush  |  on a T-shirt
  38. ------------------------------------------------------------------------
  39.