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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!pacbell.com!tandem!Tandem.COM!stu
  3. From: stu@Tandem.COM (Stuart Phillips)
  4. Subject: Getting rid of Help Engine on WM_SYSCOMMAND ?! 
  5. Message-ID: <1993Jan7.162242.7587@tandem.com>
  6. Sender: news@tandem.com
  7. Nntp-Posting-Host: av8r.cpd.tandem.com
  8. Reply-To: stu@Tandem.COM
  9. Organization: Tandem Computers, Cupertino - USA
  10. Date: Thu, 7 Jan 1993 16:22:42 GMT
  11. Lines: 23
  12.  
  13. I have an application with associated help.  When the user exits
  14. the application via the File|Exit command, I call WinHelp() with
  15. HELP_QUIT in order to cause the help engine to close its window
  16. and exit.  This works just fine.
  17.  
  18. However, if the use exits via the close menu item on the windows
  19. system menu, I can't get rid of the darn help engine!
  20.  
  21. I've tried processing the WM_SYSCOMMAND message and looking for
  22. the SC_CLOSE event; I process it just fine, call WinHelp() with
  23. HELP_QUIT but the help engine stays around!
  24.  
  25. I started trying commercial window applications and have found
  26. that all Microsoft applications exhibit the same behavior I'm
  27. experiencing.  Borland applications such as the Resource
  28. Workshop and the IDE however, correctly dispose of the help
  29. engine no matter how they are exited!
  30.  
  31. Anyone have the magic cookie recipe to get rid of help after
  32. a System Menu close ?????
  33.  
  34. Thanks!
  35. Stu
  36.