zoukankan      html  css  js  c++  java
  • VC++/MFC中调用CHM帮助文档的方法

    转载:http://blog.csdn.net/hediping9811/article/details/23341387

    (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_HIDE Hides the window and activates the executable file.
      SW_MAXIMIZE Maximizes the window.
      SW_MINIMIZE Minimizes the window. The next top-level window in the Z-order is activated.
      SW_RESTORE Activates the window even if it is hidden or minimized
      SW_SHOW Activates the window and displays it in its original size and at its original position.
      SW_SHOWMAXIMIZED Activates the window. The window is displayed as maximized.
      SW_SHOWMINIMIZED Activates the window. The window is displayed as minimized.
      SW_SHOWMINNOACTIVE Activates the window as minimized. The active window retains the focus.
      SW_SHOWNA Activates the window in its current state but the active window retains the focus.
      SW_SHOWNOACTIVATE Displays the window in its most recent size and in its most recent position. The active window retains the focus.
      SW_SHOWNORMAL Displays the window in its original size and at its original position.

  • 相关阅读:
    jetcache 二级缓存使用
    hutool-crypto 依赖 Aes加密,解密
    springboot下的logback-spring配置文件以及使用方式
    docker 实现多个端口映射
    zookeeper部署启动异常,8080端口被占用。
    docker tomcat 文件传递
    关于注解AOP,基于类和方法的实现
    idea 创建file找不到java文件时....
    idea 将项目代码提交到github中
    java第八天---多态、抽象、接口
  • 原文地址:https://www.cnblogs.com/ransn/p/8279446.html
Copyright © 2011-2022 走看看