G
Guest
I am writing a Windows Forms application using VS.NET 2003 and C#. The
application uses the Multi-Document Interface (MDI) style. Our customer
education team requires that the application display context-sensitive help
using the common CHM file format. We are currently using P/Invoke as follows
to display the help file:
[DllImport( "HHCtrl.ocx" )]
public extern static int HtmlHelp( int hwnd, string pszFile, int cmd, int
data );
protected const int HH_HELP_CONTEXT = 0x000F;
virtual protected int DisplayHelp( int helpID, string fileName, string
helpName )
{
// Open the HelpViewer window.
int res = HelpControlBase.HtmlHelp( 0, fileName, HH_HELP_CONTEXT, helpID );
return res;
}
This launches a new form in a child process. We now need to have the CHM
help content be hosted in an MDI child form so that the child form can be
managed like all of the other child forms. I have searched without success
for information on how to do this.
How can I display the CHM help content in an MDI child form?
Is there a .NET solution for this?
Thanks,
Dave
application uses the Multi-Document Interface (MDI) style. Our customer
education team requires that the application display context-sensitive help
using the common CHM file format. We are currently using P/Invoke as follows
to display the help file:
[DllImport( "HHCtrl.ocx" )]
public extern static int HtmlHelp( int hwnd, string pszFile, int cmd, int
data );
protected const int HH_HELP_CONTEXT = 0x000F;
virtual protected int DisplayHelp( int helpID, string fileName, string
helpName )
{
// Open the HelpViewer window.
int res = HelpControlBase.HtmlHelp( 0, fileName, HH_HELP_CONTEXT, helpID );
return res;
}
This launches a new form in a child process. We now need to have the CHM
help content be hosted in an MDI child form so that the child form can be
managed like all of the other child forms. I have searched without success
for information on how to do this.
How can I display the CHM help content in an MDI child form?
Is there a .NET solution for this?
Thanks,
Dave