home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4734 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.7 KB  |  40 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!microsoft!hexnut!blakeco
  3. From: blakeco@microsoft.com (Blake Coverett)
  4. Subject: Re: Getting rid of Help Engine on WM_SYSCOMMAND ?! 
  5. Message-ID: <1993Jan08.055432.18267@microsoft.com>
  6. Date: 08 Jan 93 05:54:32 GMT
  7. Organization: Microsoft Canada Inc.
  8. References: <1993Jan7.162242.7587@tandem.com>
  9. Lines: 29
  10.  
  11. In article <1993Jan7.162242.7587@tandem.com> stu@Tandem.COM writes:
  12. >I have an application with associated help.  When the user exits
  13. >the application via the File|Exit command, I call WinHelp() with
  14. >HELP_QUIT in order to cause the help engine to close its window
  15. >and exit.  This works just fine.
  16. >
  17. >However, if the use exits via the close menu item on the windows
  18. >system menu, I can't get rid of the darn help engine!
  19. >
  20. >I've tried processing the WM_SYSCOMMAND message and looking for
  21. >the SC_CLOSE event; I process it just fine, call WinHelp() with
  22. >HELP_QUIT but the help engine stays around!
  23.  
  24. WM_CLOSE is the normal place to handle this.  It works for me.
  25.  
  26. >I started trying commercial window applications and have found
  27. >that all Microsoft applications exhibit the same behavior I'm
  28. >experiencing.  Borland applications such as the Resource
  29. >Workshop and the IDE however, correctly dispose of the help
  30. >engine no matter how they are exited!
  31.  
  32. Hmm... I just tried this with Word, Excel, PowerPoint and Access and they
  33. all close the help engine correctly when you exit via the system menu.
  34. Which MS apps are you talking about?
  35.  
  36. -Blake (alright, so I'm being defensive)
  37. -- 
  38. #include <std/disclaimer.h>                       blakeco@microsoft.com
  39. Mail Flames, Post Apologies.                      ...!uunet!microsoft!blakeco
  40.