G
Guest
Hopefully my subscription issues are now resolved. Here is my previous
posting:
I am developing a Windows Forms application using Visual Studio 2003 and C#.
The application uses the MDI style.
The main application provides context sensitive help upon user request The
help information is displayed in a help viewer window ( HHCtrl.ocx,
HtmlHelp() ). The help viewer shows up as a separate application in the task
manager, but it is associated with the same process as the main application.
We have found that if the user closes the help viewer window, focus does not
always return to the main application window. Is there a way for the main
application to detect when the help viewer is closed and give itself focus?
We launch the HtmlViewer as follows:
public class HelpControlBase
{
protected const int HH_HELP_CONTEXT = 0x000F;
[DllImport( "HHCtrl.ocx" )]
public extern static int HtmlHelp( int hwnd, string pszFile, int cmd, int
data );
virtual protected int DisplayHelp( int helpID, string fileName )
{
int results = HelpControlBase.HtmlHelp( 0, fileName, HH_HELP_CONTEXT,
helpID );
return results;
}
}
Thanks,
Dave
posting:
I am developing a Windows Forms application using Visual Studio 2003 and C#.
The application uses the MDI style.
The main application provides context sensitive help upon user request The
help information is displayed in a help viewer window ( HHCtrl.ocx,
HtmlHelp() ). The help viewer shows up as a separate application in the task
manager, but it is associated with the same process as the main application.
We have found that if the user closes the help viewer window, focus does not
always return to the main application window. Is there a way for the main
application to detect when the help viewer is closed and give itself focus?
We launch the HtmlViewer as follows:
public class HelpControlBase
{
protected const int HH_HELP_CONTEXT = 0x000F;
[DllImport( "HHCtrl.ocx" )]
public extern static int HtmlHelp( int hwnd, string pszFile, int cmd, int
data );
virtual protected int DisplayHelp( int helpID, string fileName )
{
int results = HelpControlBase.HtmlHelp( 0, fileName, HH_HELP_CONTEXT,
helpID );
return results;
}
}
Thanks,
Dave