The WinCreateHelpInstance call passes the HELPINIT structure defined in the PMHELP.H include file to the Presentation Manager. WinCreateHelpInstance returns a handle to the help instance, which you must store in a HWND variable for use with the rest of the application programming interface (API) function calls associated with IPF.

IPF responds to the WinCreateHelpInstance call by installing its help hook and initializing for help processing.

The following shows how a help instance is created.

   /*  Creating help instance */
   hwndHelpInstance = WinCreateHelpInstance (habMain, &hini);

   if (!hwndHelpInstance || hini.ulReturnCode)
   {
   MessageBox (hwndFrame,
         IDS_HELPLOADERROR,
         MB_OK | MB_ERROR,
         TRUE);
   return;
   }


[Back] [Next]