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
Ïà¹ØÎĵµ£º
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Îı¾±à¼Æ÷</title>
<meta http-equiv="C ......
£¨×ª×ÔCSDNÂÛ̳ÎÊÌâ»ØÌû£©
metaÊÇÓÃÀ´ÔÚHTMLÎĵµÖÐÄ£ÄâHTTPÐÒéµÄÏìӦͷ±¨ÎÄ¡£meta ±êÇ©ÓÃÓÚÍøÒ³µÄ£¼head£¾Ó룼/head£¾ÖУ¬meta ±êÇ©µÄÓô¦ºÜ¶à¡£meta µÄÊôÐÔÓÐÁ½ÖÖ£ºnameºÍhttp-equiv¡£
nameÊôÐÔÖ÷ÒªÓÃÓÚÃèÊöÍøÒ³£¬¶ÔÓ¦ÓÚcontent£¨ÍøÒ³ÄÚÈÝ£©£¬ÒÔ±ãÓÚËÑË÷Òý ......
´¿Java¶ÁÈ¡¡¢ÏÔʾ¡¢×ª»»wordÎĵµ(97~2007)¡¢htmlÎĵµ
ÏÂÔØ³ÌÐò¿â
http://hgsqldoc.appspot.com/lib/hg.jar
Ö÷³ÌÐò¿â£¨±ØÐ룩
http://hgsqldoc.appspot.com/lib/poi.jar
½âÎödoc¸ñʽ
http://hgsqldoc.appspot.com/lib/itext.jar
Êä³öpdfºÍrtf
http://hgsqldoc.appspot.com/lib/fgio.jar
Êä³ösvg¡¢swf¡¢ps¡¢emf
¶ÁÈ ......
jsÒªÇó£ºÎªÊ¹ÏµÍ³ÄÜÔÚIEºÍFFÏÂÕý³£ÔËÐУ¬²»ÒªÊ¹ÓÃÔÉú̬µÄjavascript£¬½¨ÒéʹÓÃjsµÄ¿â£¨È磺jquery£©
²¢ÇÒÒªÇóÓÃjqueryÖУ¬»ñÈ¡¶ÔÏóµÄÊôÐÔʹÓÃ$obj.attr("attrName"),²»ÒªÊ¹ÓÃobj.attrName,·ÀÖ¹×Ô¶¨ÒåµÄÊôÐÔÔÚFFÖв»ÄÜÕý³£ÔËÐÐ
1¡¢ÎÊÌ⣺<span></span>ÔÚFFÏÂÔË ......
// <summary>
/// ¹ýÂËhtml´úÂë
/// </summary>
public static string RphtmlStr(string html)
{
&n ......