Canceling
Help
Windows Help
requires an application to explicitly cancel help so that Windows Help can free
any resources it used to keep track of the application and its help files. The
application can do this at any time.
An
application cancels Windows Help by calling the WinHelp
WinHelp(hwnd, "myhelp.hlp", HELP_QUIT,
NULL);
If the
application has made any calls to the WinHelp1P1P.RF function, it must cancel help before it
closes its main window (for example, in response to the WM_DESTROY message in the main window
procedure). An application needs to call WinHelp only once to cancel
help, no matter how many help files it has opened. Windows Help remains running
until all applications or dynamic-link libraries that have called the WinHelp
function have canceled help.