易截截图软件、单文件、免安装、纯绿色、仅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,BasicPage.cs类使用)

    /// <summary>
    /// 截断字符串(中文计一个字符宽度,其它计半个字符宽度)
    /// </summary>
    /// <param name="input">需截断的字符串</param>
    /// <param name="length">字符宽度</pa ......

[转帖]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=& ......

HTML基础知识

HTML英语意思是:Hypertext Marked Language,即超文本标记语言,是一种用来制作超文本文档的简单标记语言。用HTML编写的超文本文档称为HTML文档,它能独立于各种操作系统平台(如UNIX,WINDOWS等)。自1990年以来HTML就一直被用作World Wide Web 的信息表示语言,用于描述Homepage的格式设计和它与WWW上其它Homepage 的连结 ......

asp.net中过略html代码

// <summary>
        /// 过滤html代码
        /// </summary>
        public static string RphtmlStr(string html)
        {
   &n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号