易截截图软件、单文件、免安装、纯绿色、仅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 1.X 通过 JS 获取 STRUTS HTML 标签的相关值

<html:select property='optdwdm' style='width:230' onchange='changedw(this)'>
<html:options collection='dwlist' property='dm' labelProperty='mc' />
</html:select>
在标签的 ONCHANGE 事件里面定义一个 changedw(this)
然后可以通过以下代码获取 html:select  选取的 VALUE ......

调整html界面笔记整理 不断更新

一、img+文字 在一个div 里面如何居中对齐?
img和文本是两种不同的节点 所以用的方法也不一样
文字主要依靠 父节点的行高来居中
而img需要的是自身的垂直中齐属性
div {line-heiht:25px;height:25px;}
div img {vertical-align:middle;}
例如:
<div id="buttons">
     <img src= ......

HTML读书笔记

1.防止图片被下载和盗用的方法:
  (1)<div>嵌套<img>设置<div>的背景图片为实际图片,<img>包含的图片是一张透明图片,两张图片的尺寸相同。即相当于在真实图片上添加了一层保护膜,这张保护膜就是透明图片。这样当用户选择“图片另存为”时,将保存的是透明图片,而不是实际图 ......

html标签及属性大全

基本结构标签:
<HTML>,表示该文件为HTML文件
<HEAD>,包含文件的标题,使用的脚本,样式定义等
<TITLE>---</TITLE>,包含文件的标题,标题出现在浏览器标题栏中
</HEAD>,<HEAD>的结束标志
<BODY>,放置浏览器中显示信息的所有标志和属性,其中内容在浏览器中显示.
</BOD ......

HTML CSS标签

<html >
<body style="margin:0;overflow:hidden">
    <div>
     <table style="width:100%;height:100%">
         <!--<tr>
           & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号