Hrushi
2006-01-04 08:18:33 UTC
Hi,
I have added HTML help support to my application. Everything works fine
regarding launching of help file and displaying correct topic.
But the problem starts when I press PRINT btn on chm help screen. It
takes about 30 seconds to launch "Print Topic" dialog. Which gives user
an impression that application is hanged.
If I launch the chm file directly from explorer, "Print Topic" dialog
comes up immediate.
This is the code I have for enabling HTML help.
CMyWinApp::InitInstance()
{
CString strNewPath = _T("MyHelpFile.cmh");
free((void*)m_pszHelpFilePath);
m_pszHelpFilePath =_tcsdup(strNewPath);
}
<<<<<<<<<<<<<<<<<MainFrm.cpp>>>>>>>>>>>
BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)
ON_WM_CREATE()
// Global help commands
ON_COMMAND(ID_HELP_FINDER, CMDIFrameWnd::OnHelpFinder)
ON_COMMAND(ID_HELP, CMDIFrameWnd::OnHelp)
ON_COMMAND(ID_CONTEXT_HELP, CMDIFrameWnd::OnContextHelp)
ON_COMMAND(ID_DEFAULT_HELP, CMDIFrameWnd::OnHelpFinder)
END_MESSAGE_MAP()
Am I doing anything wrong????
-hrushi.
I have added HTML help support to my application. Everything works fine
regarding launching of help file and displaying correct topic.
But the problem starts when I press PRINT btn on chm help screen. It
takes about 30 seconds to launch "Print Topic" dialog. Which gives user
an impression that application is hanged.
If I launch the chm file directly from explorer, "Print Topic" dialog
comes up immediate.
This is the code I have for enabling HTML help.
CMyWinApp::InitInstance()
{
CString strNewPath = _T("MyHelpFile.cmh");
free((void*)m_pszHelpFilePath);
m_pszHelpFilePath =_tcsdup(strNewPath);
}
<<<<<<<<<<<<<<<<<MainFrm.cpp>>>>>>>>>>>
BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)
ON_WM_CREATE()
// Global help commands
ON_COMMAND(ID_HELP_FINDER, CMDIFrameWnd::OnHelpFinder)
ON_COMMAND(ID_HELP, CMDIFrameWnd::OnHelp)
ON_COMMAND(ID_CONTEXT_HELP, CMDIFrameWnd::OnContextHelp)
ON_COMMAND(ID_DEFAULT_HELP, CMDIFrameWnd::OnHelpFinder)
END_MESSAGE_MAP()
Am I doing anything wrong????
-hrushi.