易截截图软件、单文件、免安装、纯绿色、仅160KB

WinCE 界面开发:使用HTML Browser Control

WinCE 界面开发:使用HTML Viewer Control
by cheungmine 2010-1
在Win32平台上用 C++做界面开发确实是很吃力的活。无论使用MFC还是ATL或者WTL都是很痛苦的。通常引入HTML控件,可以做出类似网页效果的精美布局。在传统的Windows应用程序中使用Web控件已是大势所趋,大大简化工作量。但是在WinCE平台上,做同样的事情,往往遇到很多困难。我自己摸索了半天,总结出下面的方法,效果还是很好的。
首先,使用WTL(WTL8.0 with VS2005)创建Windows Mobile 6的程序,选择新建项目ceWtl->WTL Mobile Application Wizard。
Platforms选择:Windows Mobile 6 Professional SDK。
Application Type:默认。
User Interface Features:勾选Use a view window,view type 选择Html Browser Control。
按Finish。
 
我仅修改默认生成的CeWtlFrame.h文件如下:
//cheungmine{{
我增加的部分
//cheungmine}}
 
// CeWtlFrame.h : interface of the CCeWtlFrame class
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
//cheungmine{{
/**
  OLEMethod
    OLEMethod receives variable parameters. I.e., you can pass any number of parameters
    depending on the property/method. Following is a summary of the OLEMethod() parameters,
    * nType – Type of call to make, which can be any of the following values:
           DISPATCH_PROPERTYPUT - Set property value
           DISPATCH_PROPERTYGET - Get property value
           DISPATCH_METHOD - Call a method
    * pvResult – Return value for the call made; it can be another IDispatch object,
                  or an integer value, or a boolean, or so on..
    * pDisp – IDispatch interface object for which the call is to be made.
    * ptName – Property or method name.
  &nb


相关文档:

将 文本格式标记 转化为 html格式标记

在做一个聊天记录的时候遇到这样一个问题,之前写入的带有特殊标记的文字,在写入数据库再读取的时候,带有html标记,
在后台调试,设置断点,取出的数据(hgjghj)(包括样式),
用文本可视化查看  为  :<FONT color=#e6421a>hgjghj</FONT>
用HTML可视化查看  为:<FO ......

[转帖]HTML文档中小meta标签的大作用

(转自CSDN论坛问题回帖)
    meta是用来在HTML文档中模拟HTTP协议的响应头报文。meta   标签用于网页的<head>与</head>中,meta   标签的用处很多。meta   的属性有两种:name和http-equiv。
    name属性主要用于描述网页,对应于content(网页内容),以便于搜索引 ......

[HTML] 关于表单提交的诡异现象

首先,我们来看下如下的代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT=& ......

在Flex中用Iframe嵌入HTML网页


有时候我们需要在Flex应用中嵌入HTML代码,根据嵌入HTML要求的不同有以下三种方法:
1、Flex文本组件(Label、Text、TextArea)的htmlText属性支持一些基本的HTML代码,例如:
<mx:TextArea>
<mx:htmlText>
<!--[CDATA[
<p align="center"><font size="15" color="#3399ff"> ......

HTML中的内联元素与块级元素(inline and block)

<html>
<head>
<title>block and inline test</title>
</head>
<body>
<div>div1</div>
<div>div2</div>
<div>div3</div>
<span>span1</span>
<span>span2</span>
<span>span3</span>
</body& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号