COMµÄHTML¿Ø¼þ
http://www.experts-exchange.com/Programming/Languages/C/Q_24038236.html
/* CWebPage.c
This is a Win32 C application (ie, no MFC, WTL, nor even any C++ -- just plain C) that demonstrates
how to embed a browser "control" (actually, an OLE object) in your own window (in order to display a
web page, or an HTML file on disk).
This is very loosely based upon a C++ example written by Chris Becke. I used that to learn the minimum
of what I needed to know about hosting the browser object. Then I wrote this example from the ground up
in C.
*/
//begin code for systray
#define _WIN32_WINNT 0x0501 // clarity
#define _WIN32_IE 0x0601
#define assert(_Expression) (void)( (!!(_Expression)) || (_wassert(_CRT_WIDE(#_Expression), _CRT_WIDE(__FILE__), __LINE__), 0) )
#include <windows.h>
#include <stdlib.h> //for atoi() and _itoa()
#include <string.h>
// end code for systray
#include <exdisp.h> // Defines of stuff like IWebBrowser2. This is an include file with Visual C 6 and above
#include <mshtml.h> // Defines of stuff like IHTMLDocument2. This is an include file with Visual C 6 and above
#include <crtdbg.h> // for _ASSERT()
#include <shellapi.h> //for system tray and balloon tool-tips
#include <urlmon.h> //urlmon.lib must be added in Projects->setting->link->projects
#include <stdio.h>
#include <winsock2.h>
//#include <curl.h>
//#include "Auditor.h"
#include <Wininet.h>
#pragma comment(lib,"wininet.lib")
// net checing2 begin
//#include "afxsock.h"
#include <iostream.h>
//#include <stdafx.h>
//void main()
//{
// Generate an error
// if(!GetProcessId(NULL))
// ErrorExit(TEXT("GetProcessId"));
//}
// netchecking2 end
#define MAX_LINE_LENGTH 1024
// A running count of how many windows we have open that contain a browser object
unsigned char WindowCount =
Ïà¹ØÎĵµ£º
ÏÈÓÃÏֳɵÄ×é¼þÍæÒ»Ï£¬Ò»»áÔÙÈ¥¿´¿´×é¼þÔ´ÂëÑо¿Ò»Ï¡£
http://code.google.com/p/flex-iframe/
ÏÂÔØÁËflexiframe.swc£¬ÒýÈ빤³Ì¡£
flex´úÂë
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
......
Ò»°ãʼþ:
onClick HTML: Êó±êµã»÷ʼþ£¬¶àÓÃÔÚij¸ö¶ÔÏó¿ØÖƵķ¶Î§ÄÚµÄÊó±êµã»÷
onDblClick HTML: Êó±êË«»÷ʼþ
onMouseDown HTML: Êó±êÉϵİ´Å¥±»°´ÏÂÁË
onMouseUp HTML: Êó±ê°´Ïºó£¬ËÉ¿ªÊ±¼¤·¢µÄʼþ
onMouseOver HTML: µ±Êó±êÒÆ¶¯µ½Ä³¶ÔÏó·¶Î§µÄÉÏ·½Ê±´¥·¢µÄʼþ
onMouseMove HTML: Êó±êÒÆ¶¯Ê±´¥·¢µ ......
´«ÖDz©¿Í_html
1. HTMLÓï·¨»ù´¡
< > ¿Õ¸ñ " ÉÌ±ê °æÈ¨
< > " ® ©
<p></p>¶ÎÂä±ê¼Ç
<br>»»Ðбê ......
<html >
<body style="margin:0;overflow:hidden">
<div>
<table style="width:100%;height:100%">
<!--<tr>
& ......
ÈÃÒ³Ãæ±äµÃ¸ü¿ìÒ»µã-HTML½âÎöÔÀí
http://justjavac.javaeye.com/blog/644235
WebÒ³ÃæÔËÐÐÔÚ¸÷ÖÖ¸÷ÑùµÄä¯ÀÀÆ÷µ±ÖУ¬ä¯ÀÀÆ÷ÔØÈë¡¢äÖÈ¾Ò³ÃæµÄËÙ¶ÈÖ±½ÓÓ°Ïì×ÅÓû§ÌåÑé¡£·Ç³£²»ÐÒµÄÊÇ£¬Ð§ÂÊ×îµÍµÄIEä¯ÀÀÆ÷ÈÔȻռÁìÕß¾ø´ó¶àÊýÊг¡·Ý¶î£¬ÕâÒѾÑÏÖØÖÆÔ¼ÁË»¥ÁªÍøµÄ·¢Õ¹£¨¸Ð̾һÏ£º“ÂíÈü¿ËºÍIE——×è°È ......