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

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 =


相关文档:

Struts html:link 标签的使用

Struts -- html:link 标签的使用
 
<html:link> 标签用于生成HTML <a> 元素。<html:link> 在创建超链接时,有两个优点:
(1) 允许在URL 中以多种方式包含请求参数。
(2) 当用户浏览器关闭Cookie 时,会自动重写URL,把SessionID 作为请求参数包含在URL 中,用于跟踪用户的Session 状态。
< ......

HTML 服务器控件语法

<script language="C#" runat="server">
  void Page_Load(Object sender, EventArgs e) {
    Message.InnerHtml = "Welcome to ASP.NET";
  }
</script>
...
<span id="Message" style="font-size:24" runat="server"/> ......

struts1标签之html:optionsCollection

我们常常把一组集合放到每个页面的下拉框中,这里利用struts1的html:optionsCollection可以省很多事。
举个例子:
写一个公共静态方法:
public static Collection<LabelValueBean> getAllType() {
Collection<LabelValueBean> col = new ArrayList<LabelValueBean>();
col.add(new LabelValueBean( ......

HTML总结

 
标 签      内 容 备 注
基 本 标 签 所有HTML文件都有的
<html>……</html> 表示文件类型为HTML文档
<head>……</head> 设置文档描述及其他不在WEB网页上显示的信息网页的标题,样式定义,Script
<body>……< ......

学习HTML时, 记下的一些很基础的东西

传智博客_html
1. HTML语法基础
<     >    空格    "      商标   版权   
&lt; &gt; &nbsp; &quot;  &reg;  &copy;
<p></p>段落标记
<br>换行标 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号