VC++/MFC中调用CHM帮助文档的方法
来源:互联网 发布:用手机发布淘宝宝贝 编辑:程序博客网 时间:2024/04/30 13:58
(1)用Word编辑好帮助文档,并保存为网页格式,如mhtml格式。
(2)用EasyCHM软件生成chm文档。生成方法很简单的,相信你能很快搞定的!当然用其它方法制作CHM文档也可以了。
(3)在MFC中添加一个菜单或按钮,添加相应的响应函数。
(4)在函数体内用 ShellExecute(NULL,"open",".\\help.chm",NULL,NULL,SW_SHOWMAXIMIZED);
说明:\\help.chm 为文件路途和文件名,\\为当前目录
SW_SHOWMAXIMIZED 为最大化文档窗口,参考MSDN,还有如下一些参数可选:
SW_HIDEHides the window and activates the executable file. SW_MAXIMIZEMaximizes the window. SW_MINIMIZEMinimizes the window. The next top-level window in the Z-order is activated. SW_RESTOREActivates the window even if it is hidden or minimized SW_SHOWActivates the window and displays it in its original size and at its original position. SW_SHOWMAXIMIZEDActivates the window. The window is displayed as maximized. SW_SHOWMINIMIZEDActivates the window. The window is displayed as minimized. SW_SHOWMINNOACTIVEActivates the window as minimized. The active window retains the focus. SW_SHOWNAActivates the window in its current state but the active window retains the focus. SW_SHOWNOACTIVATEDisplays the window in its most recent size and in its most recent position. The active window retains the focus. SW_SHOWNORMALDisplays the window in its original size and at its original position.
0 0
- VC++/MFC中调用CHM帮助文档的方法
- VC++/MFC中调用CHM帮助文档的方法--ShellExecute
- 在VB中调用CHM 帮助的几种方法
- 在VB中调用CHM 帮助的几种方法
- VC添加.chm帮助文档
- Delphi调用CHM帮助文档
- VC添加.chm帮助文档 --HtmlHelp
- CHM帮助文档的制作
- chm 帮助文档的生成
- Javadoc转换chm帮助文档的四种方法总结
- Javadoc转换chm帮助文档的四种方法总结
- Javadoc转换chm帮助文档的四种方法总结
- Javadoc转换chm帮助文档的四种方法总结
- Javadoc转换chm帮助文档的四种方法总结
- Javadoc转换chm帮助文档的四种方法总结
- Javadoc转换chm帮助文档的四种方法总结
- Javadoc转换chm帮助文档的四种方法总结
- Javadoc转换chm帮助文档的两种方法总结
- 共享内存 Shared Memory - Linux进程间通信
- webkit滚动条浅析
- ActionScript拖动元件
- 梦中的婚礼 c++--beep()
- POJ 2653 Pick-up sticks(计算几何 求线段交点)
- VC++/MFC中调用CHM帮助文档的方法
- Android复习之按钮button
- Android Permission Denied
- 丢失了文件localhost.localdomain.pid和mysql.sock,怎么办?
- Objective-C:属性
- Vim简明教程【CoolShell】
- cocos2d学习之路四(添加遥控杆)
- 如何“排外”处理多点触摸事件
- Analyzing PDF Malware - Part 3A