Discussion:
Clicking PRINT btn chm hangs aaplication.
(too old to reply)
Hrushi
2006-01-04 08:18:33 UTC
Permalink
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.
Hrushi
2006-01-25 06:19:39 UTC
Permalink
Hi All,

Please help me on this issue.

No one seems to have faced this problem. OR I have posted message in
wrong group. Please let me know in what group should I post this query
if this not correct group.

regards,
Hrushi.
Post by Hrushi
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.
Loading...