home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- From: chris@chrism.demon.co.uk (Chris Marriott)
- Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
- Subject: Re: Getting rid of Help Engine on WM_SYSCOMMAND ?!
- Distribution: world
- References: <1993Jan7.162242.7587@tandem.com>
- Organization: None
- Reply-To: chris@chrism.demon.co.uk
- X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
- Lines: 40
- Date: Thu, 7 Jan 1993 19:35:24 +0000
- Message-ID: <726435324snz@chrism.demon.co.uk>
- Sender: usenet@demon.co.uk
-
- In article <1993Jan7.162242.7587@tandem.com> stu@Tandem.COM writes:
-
- >I have an application with associated help. When the user exits
- >the application via the File|Exit command, I call WinHelp() with
- >HELP_QUIT in order to cause the help engine to close its window
- >and exit. This works just fine.
- >
- >However, if the use exits via the close menu item on the windows
- >system menu, I can't get rid of the darn help engine!
- >
- >I've tried processing the WM_SYSCOMMAND message and looking for
- >the SC_CLOSE event; I process it just fine, call WinHelp() with
- >HELP_QUIT but the help engine stays around!
- >
- >I started trying commercial window applications and have found
- >that all Microsoft applications exhibit the same behavior I'm
- >experiencing. Borland applications such as the Resource
- >Workshop and the IDE however, correctly dispose of the help
- >engine no matter how they are exited!
- >
- >Anyone have the magic cookie recipe to get rid of help after
- >a System Menu close ?????
- >
- >Thanks!
- >Stu
- >
-
- All I do is call WinHelp( ..... HELP_QUIT ) during the processing of the
- WM_DESTROY message of my main window. This gets called no matter *how*
- the application ends, so it should always be OK. After reading your
- message I've tested my own apps, and the help window goes away exactly
- as it should.
- --
- --------------------------------------------------------------------------
- | Chris Marriott | chris@chrism.demon.co.uk |
- | Warrington, UK | BIX: cmarriott |
- | (Still awaiting inspiration | CIX: cmarriott |
- | for a witty .sig .... ) | CompuServe: 100113,1140 |
- --------------------------------------------------------------------------
-
-