CHM'这是什么?'风格上下文敏感的帮助 [英] CHM 'What's this?' style context sensitive help

查看:78
本文介绍了CHM'这是什么?'风格上下文敏感的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我对帮助创作的经验很少。我是一名贸易系统程序员。好的我正在使用C / C ++ Windows编程环境。 



我已经提供了一个CHM文件,其中包含很多RoboHelp生成的与弹出帮助菜单相关的Javascript。我们的XP,WinHelp解决方案会在右键单击控件时出现"这是什么?"菜单项。我基本上想要使用CHM文件来实现同样的事情(除了'这是什么?'变成'帮助'),右键单击一个控件将弹出一个菜单项,选中它后会弹出一个CHM窗口。



我不懂的是我需要在程序中调用什么API来实现我想要的?当我第一次将这个任务作为我项目的一部分时,我首先想到的是我需要子类化一个对话框并进行必要的HtmlHelp调用。当然,它必须比在CHM中似乎存在所有RoboHelp代码更容易。提前致谢。彼得。

解决方案

嗨彼得
我会在这里发布相同的解决方案,因为我发布在新闻组中,以便其他人可以受益:
所以你正在使用C ++ ...

我在网上看到
MFC的例子。

David Liske的网站有MFC示例(包括这是什么
帮助)。
http://frogleg.mvps.org/helptechnologies/htmlhelp/hhmfc.html

Don
Lammers示例总是很好

http://www.smountain。 com / resource / CPPHTMLHelp.pdf

这个
MS教程看起来也不错
http://support.microsoft.com/default.aspx/kb/241218 搜索结果,罗布结果

Firstly I have very little experience of help authoring. I'm a systems programmer by trade. OK I'm working in the context of a C/C++ Windows programming. 



I've been supplied a CHM file which contains a lot of RoboHelp generated Javascript relating to pop up help menus. Our XP, WinHelp, solution results in a 'What's this?' menu item appearing when a control is right clicked. I basically want to use the CHM file instead and achieve the same thing (except 'What's this?' becomes 'Help') in that right clicking a control will bring up a menu item which when selected will bring up a CHM window.




What I don't understand is what API call I need to make in our program in order to achieve what I want? When first given this task as part of my project my first thought was that I need to subclass a dialog and make the necessary HtmlHelp call. Surely it must be easier than that given all the RoboHelp code there seems to be in the CHM. Thanks in advance. Peter.

解决方案

Hi Peter
I'll post the same solution here as I posted in the NewsGroup so others can benefit:
So you are using C++...

I see examples around the web for MFC.

David Liske's site has MFC examples (including What's This Help).
http://frogleg.mvps.org/helptechnologies/htmlhelp/hhmfc.html

Don Lammers examples are always good
http://www.smountain.com/resource/CPPHTMLHelp.pdf

This MS tutorial looks good too
http://support.microsoft.com/default.aspx/kb/241218

Rob


这篇关于CHM'这是什么?'风格上下文敏感的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆