Associating a Help Instance

Once the help instance has been created, it must be associated with an application window. The help instance is normally associated with the application's main frame window, and help may therefore be provided for any children of the frame window, including the menu bar and client window. The WinAssociateHelpInstance() function is used to associate a help instance with an application window; an example of this function is shown in Figure "WinAssociateHelpInstance() Function".

The WinAssociateHelpInstance() function is normally called from the application's main routine, immediately following the WinCreateHelpInstance() function call.


[Back: Creating a Help Instance]
[Next: Ending a Help Instance]