在CDHtmlDialog中显示html脚本

上传者: jszj | 上传时间: 2023-04-12 07:35:54 | 文件大小: 6.39MB | 文件类型: RAR
最近两天在弄一个界面显示的事情,虽然要求不高,不过还是想做得好看一些,就想在htmldialog上来显示web脚本,这样也方便格式化显示。 但是这htmldialog只能显示url,而无法显示一段html脚本,于是通过研究和思路改变,也为了以后方便使用,特意写了个简单的dll库来实现这个功能,它可以加载url,也可以加载一段html代码。 加载url时,由于没有处理安全类的东西,所以可能会出现许多提示,所以此库不建议使用这一功能。 加载html代码时,应该是需要一个完整的代码,包括<html>等标签 工程说明: 都采用vs2015编译 showhtml 工程:主功能实现库,可以在其它程序中使用它,包含showhtml/showhtml.api.h文件,然后链接showhtml.lib。其提供两个接口: CreateHtmlShow(),用于生成一个用来显示的窗口,它必需有一个父窗口,其返回值在后面显示时需要。如果返回值小于等于0,则表示失败 NavigateHtml(),用于加载一个url或者显示一段html代码,其第一个参数为CreateHtmlShow()的返回值。 CreateHtmlShow()接口返回值存在的意义,在一个程序中,可能会同时多个地方显示html内容,所以需要对每个显示添加标示 至于窗口关闭时,则库自动删除对应的web显示窗口。 shdemo 工程:html显示的测试工程 如有问题,请联系: hyd2001_2008@163.com 2018.7.10

文件下载

资源详情

[{"title":"( 44 个子文件 6.39MB ) 在CDHtmlDialog中显示html脚本","children":[{"title":"showhtml","children":[{"title":"shdemo","children":[{"title":"shdemo.cpp <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"shdemo.h <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"shdemo.vcxproj.filters <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"shdemo.aps <span style='color:#111;'> 89.26KB </span>","children":null,"spread":false},{"title":"shdemo.rc <span style='color:#111;'> 10.73KB </span>","children":null,"spread":false},{"title":"shdemo.vcxproj <span style='color:#111;'> 10.36KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"shdemo.rc2 <span style='color:#111;'> 668B </span>","children":null,"spread":false},{"title":"shdemo.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.cpp <span style='color:#111;'> 139B </span>","children":null,"spread":false},{"title":"shdemoDlg.cpp <span style='color:#111;'> 3.70KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 240B </span>","children":null,"spread":false},{"title":"shdemoDlg.h <span style='color:#111;'> 691B </span>","children":null,"spread":false}],"spread":false},{"title":"Debug","children":[{"title":"shdemo.exe <span style='color:#111;'> 9.89MB </span>","children":null,"spread":false},{"title":"showhtml.dll <span style='color:#111;'> 8.36MB </span>","children":null,"spread":false},{"title":"showhtml.lib <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false}],"spread":true},{"title":".vs","children":[{"title":"showhtml","children":[{"title":"v14","children":[{"title":".suo <span style='color:#111;'> 57.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"doc","children":[{"title":"readme.txt <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false}],"spread":true},{"title":"showhtml.sln <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"Release","children":[{"title":"shdemo.exe <span style='color:#111;'> 3.39MB </span>","children":null,"spread":false},{"title":"showhtml.dll <span style='color:#111;'> 2.04MB </span>","children":null,"spread":false},{"title":"showhtml.lib <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"showhtml","children":[{"title":"resource.h <span style='color:#111;'> 966B </span>","children":null,"spread":false},{"title":"showhtml.def <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"showhtml.rc <span style='color:#111;'> 8.11KB </span>","children":null,"spread":false},{"title":"DlgHtmlIns.htm <span style='color:#111;'> 140B </span>","children":null,"spread":false},{"title":"showhtml.aps <span style='color:#111;'> 38.14KB </span>","children":null,"spread":false},{"title":"showhtml.h <span style='color:#111;'> 597B </span>","children":null,"spread":false},{"title":"AutoCri.h <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false},{"title":"DlgHtmlIns.cpp <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"showhtml.api.h <span style='color:#111;'> 234B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"showhtml.rc2 <span style='color:#111;'> 672B </span>","children":null,"spread":false}],"spread":false},{"title":"showhtml.vcxproj.filters <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"showhtml.cpp <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 900B </span>","children":null,"spread":false},{"title":"showhtml.vcxproj <span style='color:#111;'> 10.64KB </span>","children":null,"spread":false},{"title":"AutoCri.cpp <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"showhtml.vcxproj.user <span style='color:#111;'> 165B </span>","children":null,"spread":false},{"title":"DlgHtmlIns.h <span style='color:#111;'> 883B </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明