Ending the Help Instance

To end the current help instance, the application calls WinDestroyHelpInstance, passing the handle of the help instance that is to be ended.

The parameter hwndHelpInstance is the handle to the IPF instance returned from the WinCreateHelpInstance call.

The following shows how a help instance is terminated.

VOID DestroyHelpInstance (VOID)
{
   if (hwndHelpInstance)
   {
     WinDestroyHelpInstance (hwndHelpInstance);
   }
}


[Back: Associating the Instance with the Window Chain]
[Next: Responding to Messages for Menu Bar Choices]