Harikrishna R
Harikrishna R

Reputation: 317

Open CHM file only when it is not opened already

I need to open a chm file from my MFC dialog only when it is not opened. If the page is already opened, need to show the same window. Now I am using ShellExecuteW(NULL, L"open", chmPath, NULL, NULL, SW_SHOWNORMAL) and executed from a button click. It is working fine but I click again this button it will open a new page. I need to show the same page while it is already in open state. Thanks in advance

Upvotes: 0

Views: 111

Answers (1)

help-info.de
help-info.de

Reputation: 7260

You should use the HtmlHelp() API. Best (old) stuff is:

http://www.smountain.com/m_ProgrammingHelp.htm

or PDF directly: http://www.smountain.com/resource/CPPHTMLHelp.pdf

or context-sensitive help from Microsoft too: http://support.microsoft.com/kb/191118

Upvotes: 2

Related Questions