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